Revision 276068f2
Von Sven Schöling vor mehr als 2 Jahren hinzugefügt
SL/Layout/Base.pm | ||
---|---|---|
42 | 42 |
"templates/webpages"; |
43 | 43 |
} |
44 | 44 |
|
45 |
sub allow_stylesheet_fallback { |
|
46 |
1 |
|
47 |
} |
|
48 |
|
|
45 | 49 |
sub get { |
46 | 50 |
$_[0]->sub_layouts; |
47 | 51 |
return grep { $_ } ($_[0]->sub_layouts_by_name->{$_[1]}); |
... | ... | |
135 | 139 |
my ($self, $stylesheet, $css_path) = @_; |
136 | 140 |
|
137 | 141 |
return "$css_path/$stylesheet" if -f "$css_path/$stylesheet"; |
138 |
return "css/$stylesheet" if -f "css/$stylesheet"; |
|
142 |
return "css/$stylesheet" if -f "css/$stylesheet" && $self->allow_stylesheet_fallback;
|
|
139 | 143 |
return $stylesheet if -f $stylesheet; |
140 | 144 |
return $stylesheet if $stylesheet =~ /^http/; # external |
141 | 145 |
} |
Auch abrufbar als: Unified diff
Layout: css stylesheet fallback optional unterbinden