Commit 3eb8ccc6 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 1160598: url() in concatenated CSS files are incorrect when using Multiple…

Bug 1160598: url() in concatenated CSS files are incorrect when using Multiple Bugzilla databases with a single installation r/a=glob
parent 4c81579f
...@@ -539,7 +539,7 @@ sub _css_url_rewrite { ...@@ -539,7 +539,7 @@ sub _css_url_rewrite {
if (substr($url, 0, 1) eq '/' || substr($url, 0, 5) eq 'data:') { if (substr($url, 0, 1) eq '/' || substr($url, 0, 5) eq 'data:') {
return 'url(' . $url . ')'; return 'url(' . $url . ')';
} }
return 'url(../../' . dirname($source) . '/' . $url . ')'; return 'url(../../' . ($ENV{'PROJECT'} ? '../' : '') . dirname($source) . '/' . $url . ')';
} }
sub _concatenate_js { sub _concatenate_js {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment