aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-06-13 17:33:03 -0700
committerfriendica <info@friendica.com>2014-06-13 17:33:03 -0700
commit64a370056c5cb4e65274145d6dd02c35530be0f3 (patch)
tree96c3dde55f2be2107767132e1a3bf19674439836 /include
parentb5ea259666356c0fc06f281ebb1e5d13d7ab104a (diff)
downloadvolse-hubzilla-64a370056c5cb4e65274145d6dd02c35530be0f3.tar.gz
volse-hubzilla-64a370056c5cb4e65274145d6dd02c35530be0f3.tar.bz2
volse-hubzilla-64a370056c5cb4e65274145d6dd02c35530be0f3.zip
load main.js last
Diffstat (limited to 'include')
-rwxr-xr-xinclude/plugin.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/plugin.php b/include/plugin.php
index ace00d43a..5c425ac58 100755
--- a/include/plugin.php
+++ b/include/plugin.php
@@ -573,11 +573,25 @@ function head_get_js() {
$str = '';
$sources = get_app()->js_sources;
if(count($sources))
- foreach($sources as $source)
+ foreach($sources as $source) {
+ if($source === 'main.js')
+ continue;
$str .= format_js_if_exists($source);
+ }
+ return $str;
+}
+
+function head_get_main_js() {
+ $str = '';
+ $sources = array('main.js');
+ if(count($sources))
+ foreach($sources as $source)
+ $str .= format_js_if_exists($source,true);
return $str;
}
+
+
function format_js_if_exists($source) {
if(strpos($source,'/') !== false)