From 853a093ec5cf2fd9c215c4064fd80ae0bbe2af73 Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Wed, 19 Sep 2007 07:53:17 +0000 Subject: [PATCH] course/index: remove call to rebuild_context_rel() Very last caller to rebuild_context_rel() and any XX_context_rel() function. move_category() already takes care of calling context_moved(), which does the required context.path maintenance. Addresses MDL-11219 --- course/index.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/course/index.php b/course/index.php index 070bae0ad0..5d698b4f59 100644 --- a/course/index.php +++ b/course/index.php @@ -195,8 +195,6 @@ $newp = get_record('course_categories', 'id', $moveto); if (! move_category($tempcat, $newp)) { notify('Could not update that category!'); - } else { - rebuild_context_rel(get_context_instance(CONTEXT_COURSECAT, $move)); } } } -- 2.39.5