From df1a404466340700cfe16d4a57c2bd964290d35a Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 13 Dec 2013 12:54:08 +0100 Subject: 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. --- lib/base.php | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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()); -- cgit v1.2.3