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:
d801b8b
)
Layout::Base: stylesheets und javascript auch extern finden
author
Sven Schöling
<s.schoeling@googlemail.com>
Wed, 20 Jan 2021 10:06:23 +0000
(11:06 +0100)
committer
Sven Schöling
<s.schoeling@googlemail.com>
Fri, 25 Jun 2021 13:51:32 +0000
(15:51 +0200)
SL/Layout/Base.pm
patch
|
blob
|
history
diff --git
a/SL/Layout/Base.pm
b/SL/Layout/Base.pm
index
8e6acfc
..
813db73
100644
(file)
--- a/
SL/Layout/Base.pm
+++ b/
SL/Layout/Base.pm
@@
-124,6
+124,7
@@
sub _find_stylesheet {
return "$css_path/$stylesheet" if -f "$css_path/$stylesheet";
return "css/$stylesheet" if -f "css/$stylesheet";
return $stylesheet if -f $stylesheet;
+ return $stylesheet if $stylesheet =~ /^http/; # external
}
sub get_stylesheet_for_user {
@@
-165,6
+166,7
@@
sub _find_javascript {
return "js/$javascript" if -f "js/$javascript";
return $javascript if -f $javascript;
+ return $javascript if $javascript =~ /^http/;
}