MDL-21243 added theme reset after any core or plugin upgrade

This commit is contained in:
Petr Skoda 2010-01-05 22:03:21 +00:00
parent d8ada21339
commit db4e1a3c70
2 changed files with 4 additions and 1 deletions

View 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);

View 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