Skip to content

Commit

Permalink
Merge branch 'MDL-79352-403' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
…into MOODLE_403_STABLE
  • Loading branch information
HuongNV13 committed Oct 16, 2023
2 parents 13eb20d + d1b63c5 commit 5cc2ab2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions admin/classes/table/tool_plugin_management_table.php
Expand Up @@ -19,7 +19,7 @@
use moodle_url;

/**
* Tiny admin settings.
* Admin tool settings.
*
* @package core_admin
* @copyright 2023 Andrew Lyons <andrew@nicols.co.uk>
Expand All @@ -30,12 +30,6 @@ protected function get_plugintype(): string {
return 'tool';
}

public function guess_base_url(): void {
$this->define_baseurl(
new moodle_url('/admin/tools.php')
);
}

protected function get_column_list(): array {
$columns = parent::get_column_list();

Expand All @@ -45,6 +39,6 @@ protected function get_column_list(): array {
}

protected function get_action_url(array $params = []): moodle_url {
return new moodle_url('/admin/tool.php', $params);
return new moodle_url('/admin/settings.php', array_merge(['section' => 'toolsmanagement'], $params));
}
}
2 changes: 1 addition & 1 deletion lib/classes/plugininfo/tool.php
Expand Up @@ -55,7 +55,7 @@ public function is_enabled() {
* @return moodle_url
*/
public static function get_manage_url() {
return new moodle_url('/admin/tools.php');
return new moodle_url('/admin/settings.php', ['section' => 'toolsmanagement']);
}

/**
Expand Down

0 comments on commit 5cc2ab2

Please sign in to comment.