|
@@ 128-129 (lines=2) @@
|
| 125 |
|
{ |
| 126 |
|
if (substr($this->request['route'], -1) == '*') { |
| 127 |
|
$pos = strpos($this->request['route'], '*'); |
| 128 |
|
if (substr($this->router->route->getUrl(), 0, $pos) == substr($this->request['route'], 0, $pos) && isset($this->request['params'])) |
| 129 |
|
return true; |
| 130 |
|
} |
| 131 |
|
if (preg_match($regex, $this->router->route->getUrl(), $this->request['parameters'])) { |
| 132 |
|
array_shift($this->request['parameters']); |
|
@@ 131-134 (lines=4) @@
|
| 128 |
|
if (substr($this->router->route->getUrl(), 0, $pos) == substr($this->request['route'], 0, $pos) && isset($this->request['params'])) |
| 129 |
|
return true; |
| 130 |
|
} |
| 131 |
|
if (preg_match($regex, $this->router->route->getUrl(), $this->request['parameters'])) { |
| 132 |
|
array_shift($this->request['parameters']); |
| 133 |
|
return true; |
| 134 |
|
} |
| 135 |
|
return false; |
| 136 |
|
} |
| 137 |
|
|