From 3b7f1516e724caf810293c52645b7d29fae3ef13 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 20 Jan 2021 11:06:23 +0100 Subject: [PATCH] Layout::Base: stylesheets und javascript auch extern finden --- SL/Layout/Base.pm | 2 ++ 1 file changed, 2 insertions(+) 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/; } -- 2.20.1