From: wurblzap%gmail.com <> Date: Sat, 18 Aug 2007 02:13:29 +0000 (+0000) Subject: Bug 392573 – Most CSS files are missing from Dusk/, flooding web server error logs. X-Git-Tag: bugzilla-3.0.1~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07344198661202d907c23ae49a33f31ad7f79898;p=thirdparty%2Fbugzilla.git Bug 392573 – Most CSS files are missing from Dusk/, flooding web server error logs. Patch by Marc Schumann ; r=LpSolit; a=LpSolit --- diff --git a/Bugzilla/Install/Filesystem.pm b/Bugzilla/Install/Filesystem.pm index d5b8a58c45..31944bc598 100644 --- a/Bugzilla/Install/Filesystem.pm +++ b/Bugzilla/Install/Filesystem.pm @@ -34,6 +34,7 @@ use Bugzilla::Util; use File::Find; use File::Path; +use File::Basename; use IO::File; use POSIX (); @@ -200,17 +201,22 @@ sub FILESYSTEM { ); # Each standard stylesheet has an associated custom stylesheet that - # we create. - foreach my $standard (<$skinsdir/standard/*.css>) { - my $custom = $standard; - $custom =~ s|\Q$skinsdir\E/standard|$skinsdir/custom|; - $create_files{$custom} = { perms => $ws_readable, contents => <) { + next unless -d $skin_dir; + 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 => <