Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MDL-35238 Display a button to install an available update
  • Loading branch information
mudrd8mz committed Nov 8, 2012
1 parent 7683e55 commit fa3feaf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions admin/renderer.php
Expand Up @@ -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;
Expand Down

0 comments on commit fa3feaf

Please sign in to comment.