Permalink
Browse files

MDL-35238 Display a button to install an available update

  • Loading branch information...
1 parent 7683e55 commit fa3feafbbb88f03bb78621af2f9c2af42c1e85e7 @mudrd8mz mudrd8mz committed Oct 7, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 admin/renderer.php
View
@@ -1148,6 +1148,13 @@ protected function plugin_available_update_info(available_update_info $updateinf
$box = $this->output->box_start($boxclasses);
$box .= html_writer::tag('div', get_string('updateavailable', 'core_plugin', $updateinfo->version), array('class' => 'version'));
$box .= $this->output->box(implode(html_writer::tag('span', ' ', array('class' => 'separator')), $info), '');
+
+ $deployer = available_update_deployer::instance();
+ if ($deployer->initialized() and $deployer->can_deploy($updateinfo)) {
+ $widget = $deployer->make_confirm_widget($updateinfo);
+ $box .= $this->output->render($widget);
+ }
+
$box .= $this->output->box_end();
return $box;

0 comments on commit fa3feaf

Please sign in to comment.