mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-20697 get_site() replaced by proper installation time test
This commit is contained in:
parent
ad3abe2052
commit
d628171f32
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user