]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-21243 added theme reset after any core or plugin upgrade
authorPetr Skoda <skodak@moodle.org>
Tue, 5 Jan 2010 22:03:21 +0000 (22:03 +0000)
committerPetr Skoda <skodak@moodle.org>
Tue, 5 Jan 2010 22:03:21 +0000 (22:03 +0000)
lib/upgradelib.php
version.php

index 41f4c901d9c7fbed8f903e2fbecaa971157038ee..36033251e71f59618d1e634bf8ad3088db3f600c 100644 (file)
@@ -367,6 +367,7 @@ function upgrade_plugins($type, $startcallback, $endcallback, $verbose) {
             events_update_definition($component);
             message_update_providers($component);
 
+            theme_reset_all_caches();
             $endcallback($component, true, $verbose);
 
         } else if ($installedversion < $plugin->version) { // upgrade
@@ -394,6 +395,7 @@ function upgrade_plugins($type, $startcallback, $endcallback, $verbose) {
             events_update_definition($component);
             message_update_providers($component);
 
+            theme_reset_all_caches();
             $endcallback($component, false, $verbose);
 
         } else if ($installedversion > $plugin->version) {
@@ -1224,6 +1226,7 @@ function upgrade_core($version, $verbose) {
         events_update_definition('moodle');
         message_update_providers('moodle');
 
+        theme_reset_all_caches();
         remove_dir($CFG->dataroot . '/cache', true); // flush cache
 
         print_upgrade_part_end('moodle', false, $verbose);
index 9fdd8366e51a7718f0c0e67b553e4d0135a15b38..bfe79075f85f7f687fe8b6cb2cec5613fd20e7d9 100644 (file)
@@ -6,7 +6,7 @@
 // This is compared against the values stored in the database to determine
 // whether upgrades should be performed (see lib/db/*.php)
 
-    $version = 2010010400;  // YYYYMMDD   = date of the last version bump
+    $version = 2010010502;  // YYYYMMDD   = date of the last version bump
                             //         XX = daily increments
 
     $release = '2.0 dev (Build: 20100105)';  // Human-friendly version name