MDL-19696 veryveryuglyhack which partially ubreaks installation after latest pagelib changes

This commit is contained in:
skodak 2009-07-02 13:39:55 +00:00
parent bdbc743c1f
commit f071ad0269

View File

@ -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.');
}