Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Snickser committed Dec 15, 2024
1 parent e218201 commit 3a3c5b3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pay.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@
// Build redirect.
$url = helper::get_success_url($component, $paymentarea, $itemid);

// Set the context of the page.
$PAGE->set_url($SCRIPT);
$PAGE->set_context(context_system::instance());

// Check passwordmode or skipmode.
if (!empty($password) || $skipmode) {
$success = false;
Expand Down Expand Up @@ -196,9 +200,6 @@
throw new Error(get_string('payment_error', 'paygw_cryptocloud') . " ($error)");
}

// Set the context of the page.
$PAGE->set_context(context_system::instance());

// Notify user.
notifications::notify(
$userid,
Expand Down

0 comments on commit 3a3c5b3

Please sign in to comment.