MDL-20697 get_site() replaced by proper installation time test
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user