From: skodak Date: Thu, 2 Jul 2009 13:39:55 +0000 (+0000) Subject: MDL-19696 veryveryuglyhack which partially ubreaks installation after latest pagelib... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f071ad0269fcd65c0827853f57aba60521478c5d;p=moodle.git MDL-19696 veryveryuglyhack which partially ubreaks installation after latest pagelib changes --- diff --git a/lib/pagelib.php b/lib/pagelib.php index 1dab12fd9c..ac09ffb0ce 100644 --- a/lib/pagelib.php +++ b/lib/pagelib.php @@ -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.'); }