mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-79352 admin: fix links to tool plugin management page.
This commit is contained in:
parent
769c67045f
commit
3893c99825
@ -19,7 +19,7 @@ namespace core_admin\table;
|
||||
use moodle_url;
|
||||
|
||||
/**
|
||||
* Tiny admin settings.
|
||||
* Admin tool settings.
|
||||
*
|
||||
* @package core_admin
|
||||
* @copyright 2023 Andrew Lyons <andrew@nicols.co.uk>
|
||||
@ -30,12 +30,6 @@ class tool_plugin_management_table extends \core_admin\table\plugin_management_t
|
||||
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();
|
||||
|
||||
@ -45,6 +39,6 @@ class tool_plugin_management_table extends \core_admin\table\plugin_management_t
|
||||
}
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ class tool extends base {
|
||||
* @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']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user