MDL-49329 admin: Fix checking for available updates

This was a regression of my recent improvement of rendering the "Check
for updates" button. There is now unified parameter ?fetchupdates=1 that
can be used on either admin/index.php or admin/plugins.php, so that we
can use a common UI widget for both locations (without the need to pass
the URL explicitly).
This commit is contained in:
David Mudrák 2015-10-10 00:24:59 +02:00
parent b0fc789878
commit aa1d100c2d
3 changed files with 4 additions and 4 deletions

View file

@ -346,7 +346,7 @@ class core_admin_renderer extends plugin_renderer_base {
if ($checker->enabled()) {
$output .= $this->container_start('checkforupdates');
$output .= $this->single_button(
new moodle_url($reloadurl, array('fetchremote' => 1)),
new moodle_url($reloadurl, array('fetchupdates' => 1)),
get_string('checkforupdates', 'core_plugin')
);
if ($timefetched = $checker->get_last_timefetched()) {