]> git.mjollnir.org Git - moodle.git/commitdiff
admin reports: MDL-18134 Third-party admin reports not listed with the correct name.
authortjhunt <tjhunt>
Wed, 4 Feb 2009 02:15:33 +0000 (02:15 +0000)
committertjhunt <tjhunt>
Wed, 4 Feb 2009 02:15:33 +0000 (02:15 +0000)
Regression caused by MDL-17372.

admin/settings/plugins.php

index 3e05b77f2b4965fc37849875ebc08b5d5e06f393..8391a61892be1c02b3ac3a86d6d8e289c8270026 100644 (file)
@@ -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'));
 }