mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Removing literal '/' for DS which works better under windows.
This commit is contained in:
parent
16cae72417
commit
8b9d9b1b12
1 changed files with 2 additions and 2 deletions
|
@ -583,7 +583,7 @@ class Dispatcher extends Object {
|
|||
if ($parts[0] === 'theme') {
|
||||
$themeName = $parts[1];
|
||||
unset($parts[0], $parts[1]);
|
||||
$fileFragment = implode('/', $parts);
|
||||
$fileFragment = implode(DS, $parts);
|
||||
|
||||
$path = App::themePath($themeName) . 'webroot' . DS;
|
||||
if (file_exists($path . $fileFragment)) {
|
||||
|
@ -592,7 +592,7 @@ class Dispatcher extends Object {
|
|||
} else {
|
||||
$plugin = $parts[0];
|
||||
unset($parts[0]);
|
||||
$fileFragment = implode('/', $parts);
|
||||
$fileFragment = implode(DS, $parts);
|
||||
$pluginWebroot = App::pluginPath($plugin) . 'webroot' . DS;
|
||||
if (file_exists($pluginWebroot . $fileFragment)) {
|
||||
$assetFile = $pluginWebroot . $fileFragment;
|
||||
|
|
Loading…
Add table
Reference in a new issue