Move setting remote_core.* to after setup of OC, also check if it is not set yet

This commit is contained in:
Bart Visscher 2012-06-05 17:45:09 +02:00
parent 0d1a07d4ae
commit 57326ea1f8
1 changed files with 6 additions and 4 deletions

View File

@ -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();
}
}
@ -429,6 +426,11 @@ 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){