Fix backslashes in relative URLs of combined css files.

This commit is contained in:
Kevin Nehls
2009-07-14 20:41:10 -07:00
parent 2cba5d9395
commit a2930cfa61
@@ -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'");