diff options
author | Kevin Nehls <kevin@kevinnehls.com> | 2009-07-15 11:41:10 +0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-16 21:36:50 +0800 |
commit | 5cb2f42628bdfa66a1a0821efb5f9d8e78f06626 (patch) | |
tree | 30dcb5bed5a4d03ef2970353e727c6d92d6fc568 | |
parent | 1026054147a0b3bd4b3280c415485d4b75f6a57b (diff) |
Fix backslashes in relative URLs of combined css files.
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
-rw-r--r-- | modules/gallery/libraries/Gallery_View.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/libraries/Gallery_View.php b/modules/gallery/libraries/Gallery_View.php index 8a0be7f2..4715be09 100644 --- a/modules/gallery/libraries/Gallery_View.php +++ b/modules/gallery/libraries/Gallery_View.php @@ -135,6 +135,7 @@ 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'"); |