Mageia Bugzilla – Attachment 9612 Details for
Bug 21561
Bugzilla lacks any skin / CSS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
patch for Bugzilla 5.0.x
hack_bugzilla.diff (text/plain), 902 bytes, created by
Frédéric "LpSolit" Buclin
on 2017-08-18 22:28:29 CEST
(
hide
)
Description:
patch for Bugzilla 5.0.x
Filename:
MIME Type:
Creator:
Frédéric "LpSolit" Buclin
Created:
2017-08-18 22:28:29 CEST
Size:
902 bytes
patch
obsolete
>diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm >index 41b9265c6..f0c8d54b4 100644 >--- a/Bugzilla/Template.pm >+++ b/Bugzilla/Template.pm >@@ -528,6 +528,7 @@ sub _concatenate_css { > } > > $file =~ s/^\Q$cgi_path\E\///o; >+ $file =~ s#^.*(?=/assets)#data#; > return mtime_filter($file); > } > >@@ -588,6 +589,7 @@ sub _concatenate_js { > } > > $file =~ s/^\Q$cgi_path\E\///o; >+ $file =~ s#^.*(?=/assets)#data#; > return [ $file ]; > } > >diff --git a/showdependencygraph.cgi b/showdependencygraph.cgi >index 7b2d2f55d..57c9e4418 100755 >--- a/showdependencygraph.cgi >+++ b/showdependencygraph.cgi >@@ -283,6 +283,7 @@ if ($webdotbase =~ /^https?:/) { > # need to make that into a relative path. > my $cgi_root = bz_locations()->{cgi_path}; > $pngfilename =~ s#^\Q$cgi_root\E/?##; >+ $pngfilename =~ s#^.*(?=webdot)##; > > $vars->{'image_url'} = $pngfilename; >
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 41b9265c6..f0c8d54b4 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -528,6 +528,7 @@ sub _concatenate_css { } $file =~ s/^\Q$cgi_path\E\///o; + $file =~ s#^.*(?=/assets)#data#; return mtime_filter($file); } @@ -588,6 +589,7 @@ sub _concatenate_js { } $file =~ s/^\Q$cgi_path\E\///o; + $file =~ s#^.*(?=/assets)#data#; return [ $file ]; } diff --git a/showdependencygraph.cgi b/showdependencygraph.cgi index 7b2d2f55d..57c9e4418 100755 --- a/showdependencygraph.cgi +++ b/showdependencygraph.cgi @@ -283,6 +283,7 @@ if ($webdotbase =~ /^https?:/) { # need to make that into a relative path. my $cgi_root = bz_locations()->{cgi_path}; $pngfilename =~ s#^\Q$cgi_root\E/?##; + $pngfilename =~ s#^.*(?=webdot)##; $vars->{'image_url'} = $pngfilename;
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 21561
:
9612
|
9613