MDL-17372 fixed regression in 3rd party admin reports; merged from MOODLE_19_STABLE

This commit is contained in:
skodak
2008-12-06 20:43:45 +00:00
parent cea67da005
commit 36641dd264
+2 -1
View 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'));
}