Fixing admin paths for string URLs

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4080 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2006-12-07 18:59:58 +00:00
parent 8d1a23e008
commit 7fd83394ca

View file

@ -472,7 +472,11 @@ class Router extends Overloadable {
} elseif($url{0} == '/') { } elseif($url{0} == '/') {
$output = $base . $url; $output = $base . $url;
} else { } else {
$output = $base . '/' . strtolower($params['controller']) . '/' . $url; $output = $base . '/';
if (defined('CAKE_ADMIN')) {
$output .= CAKE_ADMIN . '/';
}
$output .= strtolower($params['controller']) . '/' . $url;
} }
} }
if ($full) { if ($full) {