diff --git a/core/templates/layout.base.php b/core/templates/layout.base.php index 47fb75612cf..2049bcb36da 100644 --- a/core/templates/layout.base.php +++ b/core/templates/layout.base.php @@ -7,7 +7,6 @@ - diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php index 9aabc08acec..69330aa9fce 100644 --- a/core/templates/layout.guest.php +++ b/core/templates/layout.guest.php @@ -8,7 +8,6 @@ - diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index 2547278547f..de38239572b 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -8,7 +8,6 @@ - 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)); }