Skip to content

Commit

Permalink
Merge branch 'MDL-68558-master-plugindepscheckdeadend' of git://githu…
Browse files Browse the repository at this point in the history
…b.com/mudrd8mz/moodle into master
  • Loading branch information
stronk7 committed Aug 12, 2020
2 parents 5374c76 + 9d17179 commit 8e29cce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,8 @@
// Always verify plugin dependencies!
$failed = array();
if (!core_plugin_manager::instance()->all_plugins_ok($version, $failed, $CFG->branch)) {
echo $output->unsatisfied_dependencies_page($version, $failed, $PAGE->url);
echo $output->unsatisfied_dependencies_page($version, $failed, new moodle_url($PAGE->url,
array('confirmplugincheck' => 0)));
die();
}
unset($failed);
Expand Down Expand Up @@ -701,7 +702,8 @@
$failed = array();
if (!$pluginman->all_plugins_ok($version, $failed, $CFG->branch)) {
$output = $PAGE->get_renderer('core', 'admin');
echo $output->unsatisfied_dependencies_page($version, $failed, $PAGE->url);
echo $output->unsatisfied_dependencies_page($version, $failed, new moodle_url($PAGE->url,
array('confirmplugincheck' => 0)));
die();
}
unset($failed);
Expand Down
4 changes: 2 additions & 2 deletions admin/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ public function plugins_check_table(core_plugin_manager $pluginman, $version, ar

if (!empty($installabortable[$plugin->component])) {
$status .= $this->output->single_button(
new moodle_url($this->page->url, array('abortinstall' => $plugin->component)),
new moodle_url($this->page->url, array('abortinstall' => $plugin->component, 'confirmplugincheck' => 0)),
get_string('cancelinstallone', 'core_plugin'),
'post',
array('class' => 'actionbutton cancelinstallone d-block mt-1')
Expand Down Expand Up @@ -1209,7 +1209,7 @@ public function plugins_check_table(core_plugin_manager $pluginman, $version, ar

if ($installabortable) {
$out .= $this->output->single_button(
new moodle_url($this->page->url, array('abortinstallx' => 1)),
new moodle_url($this->page->url, array('abortinstallx' => 1, 'confirmplugincheck' => 0)),
get_string('cancelinstallall', 'core_plugin', count($installabortable)),
'post',
array('class' => 'singlebutton cancelinstallall mr-1')
Expand Down

0 comments on commit 8e29cce

Please sign in to comment.