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