[Rt-commit] rt branch, 4.2/css-theme-detect-file, created. rt-4.2.9-76-g0475d2d

? sunnavy sunnavy at bestpractical.com
Fri Jan 30 10:23:05 EST 2015


The branch, 4.2/css-theme-detect-file has been created
        at  0475d2d8fb1f40bff6f89b2a195eb48f6a6b8853 (commit)

- Log -----------------------------------------------------------------
commit 0475d2d8fb1f40bff6f89b2a195eb48f6a6b8853
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Jan 30 23:15:39 2015 +0800

    use main.css to identify if a directory in css is a theme
    
    it's consistent since we load main.css when loading a theme
    
    Fixes: I#30554

diff --git a/lib/RT/Config.pm b/lib/RT/Config.pm
index b4ae6c8..9a1bef8 100644
--- a/lib/RT/Config.pm
+++ b/lib/RT/Config.pm
@@ -212,7 +212,7 @@ our %META;
                         next unless -d $css_path;
                         if ( opendir my $dh, $css_path ) {
                             push @stylesheets, grep {
-                                -e File::Spec->catfile( $css_path, $_, 'base.css' )
+                                $_ ne 'base' && -e File::Spec->catfile( $css_path, $_, 'main.css' )
                             } readdir $dh;
                         }
                         else {

-----------------------------------------------------------------------


More information about the rt-commit mailing list