mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
admin reports: MDL-18134 Third-party admin reports not listed with the correct name.
Regression caused by MDL-17372.
This commit is contained in:
parent
1bebd4e1e2
commit
c5fce2fa76
@ -281,6 +281,7 @@ foreach (get_list_of_plugins($CFG->admin.'/report') as $plugin) {
|
||||
}
|
||||
// old style 3rd party plugin without settings.php
|
||||
$www_path = "$CFG->dirroot/$CFG->admin/report/$plugin/index.php";
|
||||
$ADMIN->add('reports', new admin_externalpage('report'.$plugin, $plugin, $www_path, 'moodle/site:viewreports'));
|
||||
$reportname = get_string($plugin, 'report_' . $plugin);
|
||||
$ADMIN->add('reports', new admin_externalpage('report'.$plugin, $reportname, $www_path, 'moodle/site:viewreports'));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user