aboutsummaryrefslogtreecommitdiffstats
path: root/include/plugin.php
diff options
context:
space:
mode:
authorTreer <treer.git@the-bordello.com>2016-06-26 13:08:40 +1000
committerTreer <treer.git@the-bordello.com>2016-06-26 13:08:40 +1000
commite0a76376265937a62c48fde03c7947cde972f8b7 (patch)
tree5b618dc2d4611357a88c2b5470ea7fd911b2553f /include/plugin.php
parent2dc1236dcae487bf3887942a2e58a240157bb896 (diff)
downloadvolse-hubzilla-e0a76376265937a62c48fde03c7947cde972f8b7.tar.gz
volse-hubzilla-e0a76376265937a62c48fde03c7947cde972f8b7.tar.bz2
volse-hubzilla-e0a76376265937a62c48fde03c7947cde972f8b7.zip
fix absolute .js urls
Diffstat (limited to 'include/plugin.php')
-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);