mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
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:
parent
8d1a23e008
commit
7fd83394ca
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue