MDL-20697 get_site() replaced by proper installation time test
authorPetr Skoda <skodak@moodle.org>
Sun, 1 Nov 2009 10:16:45 +0000 (10:16 +0000)
committerPetr Skoda <skodak@moodle.org>
Sun, 1 Nov 2009 10:16:45 +0000 (10:16 +0000)
admin/settings/frontpage.php

index dd97783..d57f4cb 100644 (file)
@@ -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(