From 9dfa47cccbf6cf4f98d807c1c61400fc138e18ff Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Thu, 29 Nov 2007 08:20:05 +0000 Subject: Bug 397099: Date/Time Fields should have a JavaScript widget for picking a date Patch By Max Kanat-Alexander r=LpSolit, r=glob, a=mkanat --- Bugzilla/Install/Filesystem.pm | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) (limited to 'Bugzilla/Install/Filesystem.pm') diff --git a/Bugzilla/Install/Filesystem.pm b/Bugzilla/Install/Filesystem.pm index c96e8d12f..a24dc28ca 100644 --- a/Bugzilla/Install/Filesystem.pm +++ b/Bugzilla/Install/Filesystem.pm @@ -211,16 +211,13 @@ sub FILESYSTEM { foreach my $skin_dir ("$skinsdir/custom", <$skinsdir/contrib/*>) { 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 => <) { + _add_custom_css($skin_dir, basename($base_css), \%create_files, $ws_readable); + } + foreach my $dir_css (<$skinsdir/standard/*/*.css>) { + $dir_css =~ s{.+?([^/]+/[^/]+)$}{$1}; + _add_custom_css($skin_dir, $dir_css, \%create_files, $ws_readable); } } @@ -378,6 +375,18 @@ EOT } +# A simple helper for creating "empty" CSS files. +sub _add_custom_css { + my ($skin_dir, $path, $create_files, $perms) = @_; + $create_files->{"$skin_dir/$path"} = { perms => $perms, contents => <{htaccess}}); -- cgit v1.2.3-24-g4f1b