From: tjhunt Date: Wed, 4 Feb 2009 02:15:33 +0000 (+0000) Subject: admin reports: MDL-18134 Third-party admin reports not listed with the correct name. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c5fce2fa76feb63132220592aac82a08ce2486b5;p=moodle.git admin reports: MDL-18134 Third-party admin reports not listed with the correct name. Regression caused by MDL-17372. --- 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')); }