diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-02-07 08:09:53 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-02-07 08:09:53 +0100 |
commit | 149d079fd4648f761820b13525bbb9064f9d5710 (patch) | |
tree | d85b8e33b37bece1fd11f49fc58b90595d096bc0 /lib/templatelayout.php | |
parent | e969a78cf998a6a5607e605d65b7bf1b35259cb8 (diff) | |
download | nextcloud-server-149d079fd4648f761820b13525bbb9064f9d5710.tar.gz nextcloud-server-149d079fd4648f761820b13525bbb9064f9d5710.zip |
Move loading of js_config to templatelayout
Also check for installed flag because this isn't available before setup
Diffstat (limited to 'lib/templatelayout.php')
-rw-r--r-- | lib/templatelayout.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/templatelayout.php b/lib/templatelayout.php index 37ece91047f..a14c36c93d2 100644 --- a/lib/templatelayout.php +++ b/lib/templatelayout.php @@ -36,6 +36,9 @@ class OC_TemplateLayout extends OC_Template { // Add the js files $jsfiles = self::findJavascriptFiles(OC_Util::$scripts); $this->assign('jsfiles', array(), false); + if (OC_Config::getValue('installed', false)) { + $this->append( 'jsfiles', OC_Helper::linkToRoute('js_config')); + } if (!empty(OC_Util::$core_scripts)) { $this->append( 'jsfiles', OC_Helper::linkToRemoteBase('core.js', false)); } |