diff --git a/admin/tool/moodlenet/index.php b/admin/tool/moodlenet/index.php index 5103730e052..f32bec9ab02 100644 --- a/admin/tool/moodlenet/index.php +++ b/admin/tool/moodlenet/index.php @@ -63,7 +63,7 @@ if ($cancel) { } redirect($url); } else if ($continue) { - confirm_sesskey(); + require_sesskey(); // Handle backups. if (strtolower($importinfo->get_resource()->get_extension()) == 'mbz') { diff --git a/admin/tool/moodlenet/options.php b/admin/tool/moodlenet/options.php index 2245150439b..7454f7ed72b 100644 --- a/admin/tool/moodlenet/options.php +++ b/admin/tool/moodlenet/options.php @@ -81,7 +81,7 @@ switch ($config->type) { } if ($import && $module) { - confirm_sesskey(); + require_sesskey(); $handlerinfo = $handlerregistry->get_resource_handler_for_mod_and_strategy($importinfo->get_resource(), $module, $strategy); if (is_null($handlerinfo)) {