aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorhubzilla <git@macgirvin.com>2016-06-26 13:43:07 +1000
committerGitHub <noreply@github.com>2016-06-26 13:43:07 +1000
commitdac3138fd1aa5e60f68c6b0ef59cbbc550d22def (patch)
treef822a75e570f8f6a7f52d81ec80887d24dd55e39 /include
parent8c4481733f4c4471349b5e6e8322ed0f387f3193 (diff)
parente0a76376265937a62c48fde03c7947cde972f8b7 (diff)
downloadvolse-hubzilla-dac3138fd1aa5e60f68c6b0ef59cbbc550d22def.tar.gz
volse-hubzilla-dac3138fd1aa5e60f68c6b0ef59cbbc550d22def.tar.bz2
volse-hubzilla-dac3138fd1aa5e60f68c6b0ef59cbbc550d22def.zip
Merge pull request #441 from Treer/cdn
fix absolute .js urls
Diffstat (limited to 'include')
-rwxr-xr-xinclude/plugin.php2
1 files changed, 1 insertions, 1 deletions
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);