From 149d079fd4648f761820b13525bbb9064f9d5710 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Thu, 7 Feb 2013 08:09:53 +0100 Subject: Move loading of js_config to templatelayout Also check for installed flag because this isn't available before setup --- lib/templatelayout.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/templatelayout.php') 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)); } -- cgit v1.2.3