Fix some fallout from the pagelib changes.
This commit is contained in:
+1
-2
@@ -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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user