diff --git a/cake/dispatcher.php b/cake/dispatcher.php index 1597c666f..5080bfe90 100644 --- a/cake/dispatcher.php +++ b/cake/dispatcher.php @@ -339,7 +339,7 @@ class Dispatcher extends Object { if ($webroot === 'webroot' && $webroot === basename($base)) { $base = dirname($base); } - if ($dir === 'app' && $dir === basename($base)) { + if ($dir === APP_DIR && $dir === basename($base)) { $base = dirname($base); }