From c5fce2fa76feb63132220592aac82a08ce2486b5 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 4 Feb 2009 02:15:33 +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 3e05b77f2b..8391a61892 100644 --- a/admin/settings/plugins.php +++ b/admin/settings/plugins.php @@ -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')); } -- 2.39.5