summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-12-13 12:54:08 +0100
committerVincent Petry <pvince81@owncloud.com>2013-12-13 12:56:48 +0100
commitdf1a404466340700cfe16d4a57c2bd964290d35a (patch)
treeae2ed248126b1b437f158b8aa1bc9446baaf5c01 /lib/base.php
parent3084a52a970c83ca35135f490b9bcb06b9900867 (diff)
downloadnextcloud-server-df1a404466340700cfe16d4a57c2bd964290d35a.tar.gz
nextcloud-server-df1a404466340700cfe16d4a57c2bd964290d35a.zip
Fix webroot for update page
On the update page, config.js was missing which caused oc_webroot to not be available. That would trigger the faulty oc_webroot fallback that didn't take URLs like "/owncloud/index.php/files/apps" into account. This fix adds config.js in the update page and also a fix for the oc_webroot fallback, in case it is used elsewhere.
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index baf73b2fb9f..a6033f03f8c 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -265,6 +265,7 @@ class OC {
$minimizerCSS->clearCache();
$minimizerJS = new OC_Minimizer_JS();
$minimizerJS->clearCache();
+ OC_Util::addScript('config'); // needed for web root
OC_Util::addScript('update');
$tmpl = new OC_Template('', 'update.admin', 'guest');
$tmpl->assign('version', OC_Util::getVersionString());