From aad9f920b1f533ea6776a9e3033464e2e7f4e3c8 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 2 Oct 2007 13:30:51 +0000 Subject: [PATCH] MDL-11552 - Look for the name of an admin report inside the plugin's own lang dir before falling back to the main admin.php lang file. --- admin/settings/top.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admin/settings/top.php b/admin/settings/top.php index 315b79afb5..a3b6e15e34 100644 --- a/admin/settings/top.php +++ b/admin/settings/top.php @@ -37,6 +37,10 @@ foreach (get_list_of_plugins('admin/report') as $plugin) { continue; } /// End of removable snippet + $reportname = get_string($plugin, 'report_' . $plugin); + if ($reportname[1] == '[') { + $reportname = get_string($plugin, 'admin'); + } $ADMIN->add('reports', new admin_externalpage('report'.$plugin, get_string($plugin, 'admin'), "$CFG->wwwroot/$CFG->admin/report/$plugin/index.php")); } -- 2.39.5