diff --git a/settings.php b/settings.php index 534c6aa..57b1ea2 100644 --- a/settings.php +++ b/settings.php @@ -1,11 +1,9 @@ add('reports', new admin_externalpage( - 'report_usergrades', - get_string('pluginname', 'report_usergrades'), - new moodle_url('/report/usergrades/index.php'), - 'report/usergrades:view' - )); -} +$ADMIN->add('reports', new admin_externalpage( + 'report_usergrades', + get_string('pluginname', 'report_usergrades'), + $CFG->wwwroot . "/report/usergrades/index.php", + 'report/usergrades:view' +));