mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
translation changes in the Routing dir
This commit is contained in:
parent
29b874e739
commit
e7f39b456f
1 changed files with 1 additions and 1 deletions
|
@ -263,7 +263,7 @@ class Router {
|
||||||
if (isset($options['routeClass'])) {
|
if (isset($options['routeClass'])) {
|
||||||
$routeClass = $options['routeClass'];
|
$routeClass = $options['routeClass'];
|
||||||
if (!is_subclass_of($routeClass, 'CakeRoute')) {
|
if (!is_subclass_of($routeClass, 'CakeRoute')) {
|
||||||
throw new RouterException(__('Route classes must extend CakeRoute'));
|
throw new RouterException(__d('cake', 'Route classes must extend CakeRoute'));
|
||||||
}
|
}
|
||||||
unset($options['routeClass']);
|
unset($options['routeClass']);
|
||||||
if ($routeClass == 'RedirectRoute' && isset($defaults['redirect'])) {
|
if ($routeClass == 'RedirectRoute' && isset($defaults['redirect'])) {
|
||||||
|
|
Loading…
Reference in a new issue