Fix some fallout from the pagelib changes.

This commit is contained in:
tjhunt
2009-06-12 11:56:30 +00:00
parent 30f6bd51a3
commit c679c3582a
2 changed files with 3 additions and 4 deletions
+1 -2
View 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);
+2 -2
View 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);