From: Sven Schöling Date: Wed, 20 Jan 2021 10:06:23 +0000 (+0100) Subject: Layout::Base: stylesheets und javascript auch extern finden X-Git-Tag: kivitendo-mebil_0.1-0~9^2~117 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=3b7f1516e724caf810293c52645b7d29fae3ef13;p=kivitendo-erp.git Layout::Base: stylesheets und javascript auch extern finden --- diff --git a/SL/Layout/Base.pm b/SL/Layout/Base.pm index 8e6acfc74..813db7315 100644 --- 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/; }