Skip to content

Commit

Permalink
fix some cs and grunt problems
Browse files Browse the repository at this point in the history
  • Loading branch information
fmido88 committed Jun 16, 2024
1 parent 3002d7b commit 4447c2a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion amd/build/referral.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ public function can_add_instance($courseid) {
* @param bool $charge Charge the user to enrol (only false in case of enrol coupons)
* @return bool|array true if enrolled else error code and message
*/
public function enrol_self(stdClass $instance, \stdClass|null $user = null, $charge = true) {
public function enrol_self(stdClass $instance, $user = null, $charge = true) {
global $CFG, $DB, $USER;
require_once("$CFG->dirroot/enrol/wallet/locallib.php");
if (empty($user)) {
Expand Down
5 changes: 5 additions & 0 deletions templates/referral.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
Example context (json):
{
"amount": "50",
"code": "something123",
"url": "https://something.com/login/signup.php?refcode=something123",
"mail_subject": "You got invitation",
"mail_body": "Hello! You got invitation from me. Please use this link to sign"
}
}}

Expand Down

0 comments on commit 4447c2a

Please sign in to comment.