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:27 +00:00
parent a92bc4ed2d
commit eaffb7ef7c
+2 -1
View File
@@ -160,5 +160,6 @@ foreach (get_list_of_plugins($CFG->admin.'/report') as $plugin) {
}
// old style 3rd party plugin without settings.php
$www_path = "$CFG->wwwroot/$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'));
}