mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
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:
parent
b0fc789878
commit
aa1d100c2d
3 changed files with 4 additions and 4 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue