MDL-59150 admin: build site theme after CLI install or upgrade

This commit is contained in:
Ryan Wyllie
2017-07-18 06:13:07 +00:00
parent 350700bf8b
commit 0f268f5db9
8 changed files with 163 additions and 0 deletions
+6
View File
@@ -187,5 +187,11 @@ upgrade_noncore(true);
admin_apply_default_settings(NULL, false);
admin_apply_default_settings(NULL, false);
// This needs to happen at the end to ensure it occurs after all caches
// have been purged for the last time.
// This will build a cached version of the current theme for the user
// to immediately start browsing the site.
upgrade_themes();
echo get_string('cliupgradefinished', 'admin')."\n";
exit(0); // 0 means success