@@ -52,9 +52,9 @@ discard block |
||
52 | 52 | } |
53 | 53 | } else { |
54 | 54 | $routes = require __DIR__.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'routes.php'; |
55 | - $customRoutesFile = PATH_BASEDIR . 'customization/routes.yml'; |
|
55 | + $customRoutesFile = PATH_BASEDIR.'customization/routes.yml'; |
|
56 | 56 | if (is_file($customRoutesFile)) { |
57 | - try{ |
|
57 | + try { |
|
58 | 58 | $customRoutes = Yaml::parse(file_get_contents($customRoutesFile)); |
59 | 59 | $routes['literal'] = array_merge($routes['literal'], $customRoutes['literal']); |
60 | 60 | $routes['regex'] = array_merge($routes['regex'], $customRoutes['regex']); |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | } else { |
72 | 72 | if (!empty($routes['regex'])) { |
73 | 73 | foreach ($routes['regex'] as $regex) { |
74 | - $result = preg_match('(^' . $regex['regex'] . '$)', $this->sPath, $matches); |
|
74 | + $result = preg_match('(^'.$regex['regex'].'$)', $this->sPath, $matches); |
|
75 | 75 | if ($result) { |
76 | 76 | $class = $regex['controller']; |
77 | 77 | break; |