]> git.mjollnir.org Git - moodle.git/commitdiff
If the search and replace affected course->modinfo then courses may not work,
authormoodler <moodler>
Tue, 19 Sep 2006 07:08:19 +0000 (07:08 +0000)
committermoodler <moodler>
Tue, 19 Sep 2006 07:08:19 +0000 (07:08 +0000)
so clear the cache

admin/replace.php

index 35e2507140fe9d4b00c7d98a1cb1ce9e2ccf6398..643607f02dd0064c3ef99d5819b7180756836cd6 100644 (file)
@@ -49,6 +49,10 @@ foreach ($tables as $table) {
         }
     }
 }
+
+/// Clear course cache which might be corrupted now
+execute_sql("UPDATE ".$CFG->prefix."course SET modinfo = '' WHERE id <> ".SITEID);
+
 print_simple_box_end();
 
 print_continue('index.php');