From 14bca7f1ffe4d3c979012ddbe5d06a082f915b7b Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Tue, 5 May 2015 18:57:33 +0200 Subject: Bug 1160598: url() in concatenated CSS files are incorrect when using Multiple Bugzilla databases with a single installation r/a=glob --- Bugzilla/Template.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 70a8197b5..6665029f4 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -543,7 +543,7 @@ sub _css_url_rewrite { if (substr($url, 0, 1) eq '/' || substr($url, 0, 5) eq 'data:') { return 'url(' . $url . ')'; } - return 'url(../../' . dirname($source) . '/' . $url . ')'; + return 'url(../../' . ($ENV{'PROJECT'} ? '../' : '') . dirname($source) . '/' . $url . ')'; } sub _concatenate_js { -- cgit v1.2.3-24-g4f1b