summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorKevin Nehls <kevin@kevinnehls.com>2009-07-16 12:28:00 +0800
committerBharat Mediratta <bharat@menalto.com>2009-07-16 21:36:51 +0800
commit85b0f580291e375a2c5ec21b8210e59023ee24c2 (patch)
treec2db3ab0203e0f013076b498333eeb261ba705db /modules
parent5cb2f42628bdfa66a1a0821efb5f9d8e78f06626 (diff)
move fix for backslashes on windows outside of loop per bharat's suggestion
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/libraries/Gallery_View.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/libraries/Gallery_View.php b/modules/gallery/libraries/Gallery_View.php
index 4715be09..133066d7 100644
--- a/modules/gallery/libraries/Gallery_View.php
+++ b/modules/gallery/libraries/Gallery_View.php
@@ -135,12 +135,12 @@ class Gallery_View_Core extends View {
$relative = substr(realpath(dirname($css_file) . "/$match[1]"), $docroot_length);
if (!empty($relative)) {
$search[] = $match[0];
- $relative = str_replace(DIRECTORY_SEPARATOR, "/", $relative);
$replace[] = "url('" . url::abs_file($relative) . "')";
} else {
Kohana::log("error", "Missing URL reference '{$match[1]}' in CSS file '$css_file'");
}
}
+ $replace = str_replace(DIRECTORY_SEPARATOR, "/", $replace);
$css = str_replace($search, $replace, $css);
}
$imports = preg_match_all("#@import\s*['|\"]{0,1}(.*?)['|\"]{0,1};#",