avoid too-early database access and thus make owncloud installable again

This commit is contained in:
Arthur Schiwon 2012-06-06 17:29:57 +02:00
parent 5c17338ac7
commit 6ca2b49292
1 changed files with 14 additions and 12 deletions

View File

@ -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'));