mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-28 18:53:58 -04:00
Fix backslashes in relative URLs of combined css files.
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
This commit is contained in:
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'");
|
||||
|
||||
Reference in New Issue
Block a user