translation changes in the Routing dir

This commit is contained in:
AD7six 2011-03-12 20:01:53 +01:00
parent 29b874e739
commit e7f39b456f

View file

@ -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'])) {