Skip to content

Commit

Permalink
Fix backslashes in relative URLs of combined css files.
Browse files Browse the repository at this point in the history
  • Loading branch information
nivekiam committed Jul 15, 2009
1 parent 2cba5d9 commit a2930cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/gallery/libraries/Gallery_View.php
Expand Up @@ -135,6 +135,7 @@ private function process_css($css_file) {
$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'");
Expand Down

0 comments on commit a2930cf

Please sign in to comment.