mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-04 02:22:39 +00:00
Merge branch 'master' into 2.5
Conflicts: lib/Cake/Routing/Router.php
This commit is contained in:
commit
48d2618c62
8 changed files with 125 additions and 8 deletions
|
@ -506,6 +506,12 @@ class Router {
|
|||
$prefix = $options['prefix'];
|
||||
$connectOptions = $options['connectOptions'];
|
||||
unset($options['connectOptions']);
|
||||
if (strpos($prefix, '/') !== 0) {
|
||||
$prefix = '/' . $prefix;
|
||||
}
|
||||
if (substr($prefix, -1) !== '/') {
|
||||
$prefix .= '/';
|
||||
}
|
||||
|
||||
foreach ((array)$controller as $name) {
|
||||
list($plugin, $name) = pluginSplit($name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue