Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Snickser committed Sep 5, 2024
1 parent 37f6ba1 commit 8c733ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion classes/gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ public static function add_configuration_to_gateway_form(\core_payment\form\acco
$mform->addElement(
'advcheckbox',
'recurrent',
get_string('recurrent', 'paygw_robokassa'),
get_string('recurrent', 'paygw_robokassa')
);
$mform->setType('recurrent', PARAM_INT);
Expand Down
4 changes: 3 additions & 1 deletion method.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@
$templatedata->fixdesc = 0;
}

$templatedata->recurrent = $config->recurrent;
if (!$config->istestmode) {
$templatedata->recurrent = $config->recurrent;
}

$templatedata->image = $OUTPUT->image_url('img', 'paygw_robokassa');

Expand Down

0 comments on commit 8c733ad

Please sign in to comment.