From e0a76376265937a62c48fde03c7947cde972f8b7 Mon Sep 17 00:00:00 2001 From: Treer Date: Sun, 26 Jun 2016 13:08:40 +1000 Subject: fix absolute .js urls --- include/plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/plugin.php') diff --git a/include/plugin.php b/include/plugin.php index 3f60e5e04..6dfda1cc9 100755 --- a/include/plugin.php +++ b/include/plugin.php @@ -655,7 +655,7 @@ function format_js_if_exists($source) { // The source is a URL $path = $source; // If the url starts with // then it's an absolute URL - if($source[0][0] === '/' && $source[0][1] === '/') $path_prefix = ''; + if($source[0] === '/' && $source[1] === '/') $path_prefix = ''; } else { // It's a file from the theme $path = theme_include($source); -- cgit v1.2.3