mirror of
https://github.com/moodle/moodle.git
synced 2025-04-18 23:15:38 +02:00
MDL-19696 veryveryuglyhack which partially ubreaks installation after latest pagelib changes
This commit is contained in:
parent
bdbc743c1f
commit
f071ad0269
@ -515,6 +515,12 @@ class moodle_page {
|
||||
public function set_course($course) {
|
||||
global $COURSE, $PAGE;
|
||||
|
||||
//TODO: veryveryveryuglyhack - waiting for Tim to be fixed properly MDL-
|
||||
if (during_initial_install()) {
|
||||
return;
|
||||
}
|
||||
// end of veryveryuglyhack
|
||||
|
||||
if (empty($course->id)) {
|
||||
throw new coding_exception('$course passed to moodle_page::set_course does not look like a proper course object.');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user