Move setting remote_core.* to after setup of OC, also check if it is not set yet
This commit is contained in:
parent
0d1a07d4ae
commit
57326ea1f8
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue