avoid too-early database access and thus make owncloud installable again
This commit is contained in:
parent
5c17338ac7
commit
6ca2b49292
|
@ -426,10 +426,12 @@ class OC{
|
|||
//make sure temporary files are cleaned up
|
||||
register_shutdown_function(array('OC_Helper','cleanTmp'));
|
||||
|
||||
if (OC_Config::getValue('installed', false)) {
|
||||
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'));
|
||||
|
|
Loading…
Reference in New Issue