From 57326ea1f87f9f2d2884fc87c556fec3c6bc378e Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Tue, 5 Jun 2012 17:45:09 +0200 Subject: [PATCH] Move setting remote_core.* to after setup of OC, also check if it is not set yet --- lib/base.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/base.php b/lib/base.php index 641005c57c..a439651f4a 100644 --- a/lib/base.php +++ b/lib/base.php @@ -235,9 +235,6 @@ class OC{ OC_Config::setValue('version',implode('.',OC_Util::getVersion())); } - OC_AppConfig::setValue('core', 'remote_core.css', '/core/minimizer.php'); - OC_AppConfig::setValue('core', 'remote_core.js', '/core/minimizer.php'); - OC_App::updateApps(); } } @@ -428,7 +425,12 @@ class OC{ //make sure temporary files are cleaned up register_shutdown_function(array('OC_Helper','cleanTmp')); - + + if (!OC_AppConfig::getValue('core', 'remote_core.css', false)) { + OC_AppConfig::setValue('core', 'remote_core.css', '/core/minimizer.php'); + OC_AppConfig::setValue('core', 'remote_core.js', '/core/minimizer.php'); + } + //parse the given parameters self::$REQUESTEDAPP = (isset($_GET['app'])?str_replace(array('\0', '/', '\\', '..'), '', strip_tags($_GET['app'])):OC_Config::getValue('defaultapp', 'files')); if(substr_count(self::$REQUESTEDAPP, '?') != 0){