Skip to content
Permalink
Browse files

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

  • Loading branch information...
markstory committed Jul 1, 2010
1 parent 16cae72 commit 8b9d9b1b12df64b7d228d0a222844cfe6306de06
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/dispatcher.php
@@ -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)) {
@@ -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;

0 comments on commit 8b9d9b1

Please sign in to comment.
You can’t perform that action at this time.