MDL-17372 fixed regression in 3rd party admin reports; merged from MOODLE_19_STABLE
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user