Skip to content

Commit beefa01

Browse files
Merge pull request #3 from SMFTricks/v1.3
v1.3
2 parents 46c03a4 + 54187b7 commit beefa01

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Sources/SimpleReferrals.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public static function save_referral(&$regOptions, &$theme_vars, &$knownInts)
8686
// $_SESSION['signup_referral'] = (int) self::$_member_id;
8787

8888
// Insert the value
89-
$regOptions['register_vars']['referral'] = self::$_member_id;
89+
$regOptions['register_vars']['referral'] = (int) self::$_member_id;
9090

9191
// Both are integers
9292
$knownInts[] = 'referral';
@@ -117,6 +117,9 @@ public static function update_count($regOptions)
117117
'user' => $regOptions['register_vars']['referral'],
118118
]
119119
);
120+
121+
// Are we doing anything else with this?
122+
call_integration_hook('integrate_mod_simplereferrals', [$regOptions['register_vars']['referral']]);
120123
}
121124

122125
// If we still have the referral in the session, remove it

package-info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
44
<id>smftricks:simplereferrals</id>
55
<name>Simple Referrals</name>
6-
<version>1.2</version>
6+
<version>1.3</version>
77
<type>modification</type>
88
<install for="2.1 - 2.1.99, 2.1 RC4">
99
<!-- Mod Readme -->

readme/readme.english.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
[/list]
2222

2323
[size=12pt][color=maroon]Languages[/color][/size]
24-
[img]https://www.simplemachines.org/site_images/lang/english.gif[/img]
24+
[img]https://www.simplemachines.org/site_images/lang/english.gif[/img] [img]https://www.simplemachines.org/site_images/lang/russian.gif[/img]
2525
[hr]
2626
[size=12pt][color=purple][url=https://github.com/SMFTricks/Simple-Referrals]GitHub[/url][/color][/size]
2727
[size=12pt][color=navy][url=https://smftricks.com/index.php?topic=2202.0]Changelog[/url][/color][/size]

0 commit comments

Comments
 (0)