From eaffb7ef7cee99c370d4d59688ab5dfc0d2956f1 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 4 Feb 2009 02:15:27 +0000 Subject: [PATCH] admin reports: MDL-18134 Third-party admin reports not listed with the correct name. Regression caused by MDL-17372. --- admin/settings/plugins.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/settings/plugins.php b/admin/settings/plugins.php index 5891e69e536..d8fa1427589 100644 --- a/admin/settings/plugins.php +++ b/admin/settings/plugins.php @@ -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')); }