admin reports: MDL-18134 Third-party admin reports not listed with the correct name.

Regression caused by MDL-17372.
This commit is contained in:
tjhunt 2009-02-04 02:15:33 +00:00
parent 1bebd4e1e2
commit c5fce2fa76

View File

@ -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'));
}