From: Sven Schöling Date: Tue, 6 Mar 2012 12:54:47 +0000 (+0100) Subject: Fallback für stylesheet, diesmal richtig X-Git-Tag: release-3.0.0beta1~346^2~5 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=98a282978572450fdee1f21f2079aab1219aebae;p=kivitendo-erp.git Fallback für stylesheet, diesmal richtig --- diff --git a/SL/Form.pm b/SL/Form.pm index 32675d8ce..d171e8739 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -464,7 +464,12 @@ sub get_stylesheet_for_user { my $css_path = 'css'; if (my $user_style = $::myconfig{stylesheet}) { $user_style =~ s/\.css$//; # nuke trailing .css, this is a remnand of pre 2.7.0 stylesheet handling - $css_path = "$css_path/$user_style" if -d "$css_path/$user_style"; + if (-d "$css_path/$user_style" && + -f "$css_path/$user_style/main.css") { + $css_path = "$css_path/$user_style"; + } else { + $css_path = "$css_path/lx-office-erp"; + } } else { $css_path = "$css_path/lx-office-erp"; }