Merge branch 'wip-mdl-33347' of git://github.com/rajeshtaneja/moodle
authorDan Poltawski <dan@moodle.com>
Mon, 28 May 2012 05:01:44 +0000 (13:01 +0800)
committerDan Poltawski <dan@moodle.com>
Mon, 28 May 2012 05:01:44 +0000 (13:01 +0800)
course/lib.php

index 8e07373..648f87e 100644 (file)
@@ -2995,6 +2995,8 @@ function move_section($course, $section, $move) {
         }
         $n++;
     }
+    // After moving section, rebuild course cache.
+    rebuild_course_cache($course->id, true);
     return true;
 }