- $Page->handler = $Page->handler . $Page->path; // .= with explicit getter
- $Page->path = '';
- foreach ($params as $param) {
- if ($set = strpos($param, '=')) {
- $Page->place[ substr($param, 0, $set) ] = substr($param, $set + 1);
- }
- elseif (!empty($param)) {
- $Page->path .= '/'.$param;
+ if (is_array($params)) {
+ $Page->place += $params;
+ }
+ else {
+ foreach (explode(' ', $params) as $param) {
+ if ($set = strpos($param, '=')) {
+ $Page->place[ substr($param, 0, $set) ] = urldecode(substr($param, $set + 1));
+ }
+ elseif (!empty($param)) {
+ $Page->place[] = $param;
+ }