summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2015-05-05 18:57:33 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2015-05-05 18:57:33 +0200
commit14bca7f1ffe4d3c979012ddbe5d06a082f915b7b (patch)
tree54b2f7cbde8cde57a6013e05a8e9677afc99a403
parentcccc2524e234df6802309cf41081ae35f562dfd7 (diff)
downloadbugzilla-14bca7f1ffe4d3c979012ddbe5d06a082f915b7b.tar.gz
bugzilla-14bca7f1ffe4d3c979012ddbe5d06a082f915b7b.tar.xz
Bug 1160598: url() in concatenated CSS files are incorrect when using Multiple Bugzilla databases with a single installation
r/a=glob
-rw-r--r--Bugzilla/Template.pm2
1 files changed, 1 insertions, 1 deletions
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 {