]> git.mjollnir.org Git - moodle.git/commitdiff
course/index: remove call to rebuild_context_rel()
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:53:17 +0000 (07:53 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:53:17 +0000 (07:53 +0000)
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

index 070bae0ad0dae12097431bb2b12aae2993196ef1..5d698b4f594af12e86962914a298c3cd84957d75 100644 (file)
                 $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));
                 }
             }
         }