Skip to content

Commit

Permalink
Applying patch from 'Utoxin' that removes hardcoded 'app' string from…
Browse files Browse the repository at this point in the history
… Dispatcher. Fixes #1231
  • Loading branch information
markstory committed Oct 28, 2010
1 parent 48c2c16 commit 6a0ae7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/dispatcher.php
Expand Up @@ -355,7 +355,7 @@ function baseUrl() {
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);
}

Expand Down Expand Up @@ -691,4 +691,4 @@ function cached($url) {
return false;
}
}
?>
?>

0 comments on commit 6a0ae7d

Please sign in to comment.