don't set values with oc_appconfig when oc is not installed yet, allows to render guest page for installation again

This commit is contained in:
Jörn Friedrich Dreyer 2012-09-11 13:16:34 +02:00
parent 37f0b85d3f
commit bf2d1e78f2
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class OC_TemplateLayout extends OC_Template {
}
$this->assign( 'apps_paths', str_replace('\\/', '/',json_encode($apps_paths)),false ); // Ugly unescape slashes waiting for better solution
if (!OC_AppConfig::getValue('core', 'remote_core.css', false)) {
if (OC_Config::getValue('installed', false) && !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');
}