Removing literal '/' for DS which works better under windows.

This commit is contained in:
mark_story 2010-06-30 20:37:09 -04:00
parent 16cae72417
commit 8b9d9b1b12

View file

@ -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;