MDL-20697 get_site() replaced by proper installation time test

This commit is contained in:
Petr Skoda 2009-11-01 10:16:45 +00:00
parent ad3abe2052
commit d628171f32

View 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(