From: martinlanghoff Date: Wed, 19 Sep 2007 07:53:17 +0000 (+0000) Subject: course/index: remove call to rebuild_context_rel() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=853a093ec5cf2fd9c215c4064fd80ae0bbe2af73;p=moodle.git 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 --- 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)); } } }