From 98a282978572450fdee1f21f2079aab1219aebae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 6 Mar 2012 13:54:47 +0100 Subject: [PATCH] =?utf8?q?Fallback=20f=C3=BCr=20stylesheet,=20diesmal=20ri?= =?utf8?q?chtig?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Form.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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"; } -- 2.20.1