From 3eb8ccc6cc08ed6d5dc13e780b250636a814f645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= Date: Tue, 5 May 2015 18:59:03 +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(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 3fd71236e..6ac36f783 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -539,7 +539,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.1