|
@@ 94-95 (lines=2) @@
|
| 91 |
|
{ |
| 92 |
|
if (substr($this->request['route'], -1) == '*') { |
| 93 |
|
$pos = strpos($this->request['route'], '*'); |
| 94 |
|
if (substr($this->router->route->getUrl(), 0, $pos) == substr($this->request['route'], 0, $pos)) |
| 95 |
|
if (isset($this->request)) return true; |
| 96 |
|
} |
| 97 |
|
if (preg_match($regex, $this->router->route->getUrl(), $this->request['parameters'])) { |
| 98 |
|
array_shift($this->request['parameters']); |
|
@@ 97-100 (lines=4) @@
|
| 94 |
|
if (substr($this->router->route->getUrl(), 0, $pos) == substr($this->request['route'], 0, $pos)) |
| 95 |
|
if (isset($this->request)) return true; |
| 96 |
|
} |
| 97 |
|
if (preg_match($regex, $this->router->route->getUrl(), $this->request['parameters'])) { |
| 98 |
|
array_shift($this->request['parameters']); |
| 99 |
|
return true; |
| 100 |
|
} |
| 101 |
|
return false; |
| 102 |
|
} |
| 103 |
|
|