Skip to content

Commit

Permalink
Removing literal '/' for DS which works better under windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 1, 2010
1 parent 16cae72 commit 8b9d9b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/dispatcher.php
Expand Up @@ -583,7 +583,7 @@ function asset($url) {
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)) {
Expand All @@ -592,7 +592,7 @@ function asset($url) {
} 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;
Expand Down

0 comments on commit 8b9d9b1

Please sign in to comment.