]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-17372 fixed regression in 3rd party admin reports; merged from MOODLE_19_STABLE
authorskodak <skodak>
Sat, 6 Dec 2008 20:43:45 +0000 (20:43 +0000)
committerskodak <skodak>
Sat, 6 Dec 2008 20:43:45 +0000 (20:43 +0000)
admin/settings/plugins.php

index 265931c7342689c8facf241251e1af914fb36865..0a7600edebf3b4e7734e7b7e5d1303244ea22015 100644 (file)
@@ -280,6 +280,7 @@ foreach (get_list_of_plugins($CFG->admin.'/report') as $plugin) {
         continue;
     }
     // old style 3rd party plugin without settings.php
-    $ADMIN->add('reports', new admin_externalpage('report'.$plugin, $plugin, $index_path, 'moodle/site:viewreports'));
+    $www_path = "$CFG->dirroot/$CFG->admin/report/$plugin/index.php";
+    $ADMIN->add('reports', new admin_externalpage('report'.$plugin, $plugin, $www_path, 'moodle/site:viewreports'));
 }