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
+7
View File
@@ -183,5 +183,12 @@ if (!core_plugin_manager::instance()->all_plugins_ok($version, $failed)) {
install_cli_database($options, true);
// 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.
require_once($CFG->libdir.'/upgradelib.php');
upgrade_themes();
echo get_string('cliinstallfinished', 'install')."\n";
exit(0); // 0 means success