Commit cca9361a authored by wurblzap%gmail.com's avatar wurblzap%gmail.com

Bug 392573 – Most CSS files are missing from Dusk/, flooding web server error logs.

Patch by Marc Schumann <wurblzap@gmail.com>; r=LpSolit; a=LpSolit
parent ff5637d1
...@@ -34,6 +34,7 @@ use Bugzilla::Util; ...@@ -34,6 +34,7 @@ use Bugzilla::Util;
use File::Find; use File::Find;
use File::Path; use File::Path;
use File::Basename;
use IO::File; use IO::File;
use POSIX (); use POSIX ();
...@@ -201,17 +202,22 @@ sub FILESYSTEM { ...@@ -201,17 +202,22 @@ sub FILESYSTEM {
); );
# Each standard stylesheet has an associated custom stylesheet that # Each standard stylesheet has an associated custom stylesheet that
# we create. # we create. Also, we create placeholders for standard stylesheets
foreach my $standard (<$skinsdir/standard/*.css>) { # for contrib skins which don't provide them themselves.
my $custom = $standard; foreach my $skin_dir ("$skinsdir/custom", <$skinsdir/contrib/*>) {
$custom =~ s|\Q$skinsdir\E/standard|$skinsdir/custom|; next unless -d $skin_dir;
$create_files{$custom} = { perms => $ws_readable, contents => <<EOT next if basename($skin_dir) =~ /^cvs$/i;
foreach (<$skinsdir/standard/*.css>) {
my $standard_css_file = basename($_);
my $custom_css_file = "$skin_dir/$standard_css_file";
$create_files{$custom_css_file} = { perms => $ws_readable, contents => <<EOT
/* /*
* Custom rules for $standard. * Custom rules for $standard_css_file.
* The rules you put here override rules in that stylesheet. * The rules you put here override rules in that stylesheet.
*/ */
EOT EOT
}; }
}
} }
# Because checksetup controls the creation of index.html separately # Because checksetup controls the creation of index.html separately
......
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