Permalink
Browse files

MDL-35238 Handle the update installation request - display the confir…

…mation page
  • Loading branch information...
1 parent fa3feaf commit bcc8397a775a690703b5e72065703c38fde3f7c3 @mudrd8mz mudrd8mz committed Oct 7, 2012
Showing with 25 additions and 0 deletions.
  1. +12 −0 admin/index.php
  2. +13 −0 admin/plugins.php
View
@@ -261,6 +261,18 @@
}
$output = $PAGE->get_renderer('core', 'admin');
+
+ $deployer = available_update_deployer::instance();
+ if ($deployer->enabled()) {
+ $deployer->initialize($reloadurl, $reloadurl);
+
+ $deploydata = $deployer->submitted_data();
+ if (!empty($deploydata)) {
+ echo $output->upgrade_plugin_confirm_deploy_page($deployer, $deploydata);
+ die();
+ }
+ }
+
echo $output->upgrade_plugin_check_page(plugin_manager::instance(), available_update_checker::instance(),
$version, $showallplugins, $reloadurl,
new moodle_url('/admin/index.php', array('confirmupgrade'=>1, 'confirmrelease'=>1, 'confirmplugincheck'=>1)));
View
@@ -51,4 +51,17 @@
}
$output = $PAGE->get_renderer('core', 'admin');
+
+$deployer = available_update_deployer::instance();
+if ($deployer->enabled()) {
+ $myurl = new moodle_url($PAGE->url, array('updatesonly' => $updatesonly, 'contribonly' => $contribonly));
+ $deployer->initialize($myurl, $myurl);
+
+ $deploydata = $deployer->submitted_data();
+ if (!empty($deploydata)) {
+ echo $output->upgrade_plugin_confirm_deploy_page($deployer, $deploydata);
+ die();
+ }
+}
+
echo $output->plugin_management_page($pluginman, $checker, $options);

0 comments on commit bcc8397

Please sign in to comment.