From: Jörn Friedrich Dreyer Date: Tue, 11 Sep 2012 11:16:34 +0000 (+0200) Subject: don't set values with oc_appconfig when oc is not installed yet, allows to render... X-Git-Tag: v4.5.0beta3~8^2~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bf2d1e78f23e736f3306d4625b09b1beac9f6db3;p=nextcloud-server.git don't set values with oc_appconfig when oc is not installed yet, allows to render guest page for installation again --- diff --git a/lib/templatelayout.php b/lib/templatelayout.php index d72f5552fde..c898628bcdf 100644 --- a/lib/templatelayout.php +++ b/lib/templatelayout.php @@ -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'); }