projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3f9ee4
)
Fallback für stylesheet, diesmal richtig
author
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 6 Mar 2012 12:54:47 +0000
(13:54 +0100)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 6 Mar 2012 12:54:47 +0000
(13:54 +0100)
SL/Form.pm
patch
|
blob
|
history
diff --git
a/SL/Form.pm
b/SL/Form.pm
index
32675d8
..
d171e87
100644
(file)
--- 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";
}