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.

This commit is contained in:
tjhunt
2007-10-02 13:30:51 +00:00
parent 38cb976c80
commit aad9f920b1
+4
View File
@@ -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"));
}