From: Petr Skoda Date: Sun, 1 Nov 2009 10:16:45 +0000 (+0000) Subject: MDL-20697 get_site() replaced by proper installation time test X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d628171f320774353e39ccff1968770ce1bf818a;p=moodle.git MDL-20697 get_site() replaced by proper installation time test --- diff --git a/admin/settings/frontpage.php b/admin/settings/frontpage.php index dd97783d9b..d57f4cb17a 100644 --- a/admin/settings/frontpage.php +++ b/admin/settings/frontpage.php @@ -2,7 +2,7 @@ // This file defines everything related to frontpage -if (!empty($CFG->version)) { //do not use during installation +if (!during_initial_install()) { //do not use during installation $frontpagecontext = get_context_instance(CONTEXT_COURSE, SITEID); if ($hassiteconfig or has_any_capability(array(