]> git.mjollnir.org Git - moodle.git/commitdiff
Fix some fallout from the pagelib changes.
authortjhunt <tjhunt>
Fri, 12 Jun 2009 11:56:30 +0000 (11:56 +0000)
committertjhunt <tjhunt>
Fri, 12 Jun 2009 11:56:30 +0000 (11:56 +0000)
course/lib.php
lib/blocklib.php

index f105aa82ebb814b8f15a2425220bf77eb9f1359d..7a2573b4709c40a757a9551b89755ad5e4a4578f 100644 (file)
@@ -3447,8 +3447,7 @@ function update_course($data) {
         fix_course_sortorder();
 
         // Test for and remove blocks which aren't appropriate anymore
-        $page = page_create_object(PAGE_COURSE_VIEW, $course->id);
-        blocks_remove_inappropriate($page);
+        blocks_remove_inappropriate($course);
 
         // Save any custom role names.
         save_local_role_names($course->id, $data);
index bccf122bf6dac904a7d43cfacf556acf0490b0aa..6df93bb125d502b31bbb020f7cdab2c9f0b2b05d 100644 (file)
@@ -779,9 +779,9 @@ function blocks_get_missing(&$page, &$blockmanager) {
  * but which should not be there according to blocks_name_allowed_in_format.
  *
  * @todo Write/Fix this function. Currently returns immediatly
- * @param $page a page object.
+ * @param $course
  */
-function blocks_remove_inappropriate($page) {
+function blocks_remove_inappropriate($course) {
     // TODO
     return;
     $blockmanager = blocks_get_by_page($page);