Fix backslashes in relative URLs of combined css files.

Signed-off-by: Bharat Mediratta <bharat@menalto.com>
This commit is contained in:
Kevin Nehls
2009-07-16 21:36:50 +08:00
committed by Bharat Mediratta
parent 1026054147
commit 5cb2f42628
@@ -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'");