Skip to content

Commit 83f12e2

Browse files
v1.3.1
v1.3.1
2 parents beefa01 + 7ffc3d5 commit 83f12e2

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

Sources/SimpleReferrals.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* @package Simple Referrals
5-
* @version 1.2
5+
* @version 1.3.1
66
* @author Diego Andrés <diegoandres_cortes@outlook.com>
77
* @copyright Copyright (c) 2021, SMF Tricks
88
* @license https://www.gnu.org/licenses/gpl-3.0.en.html
@@ -27,7 +27,7 @@ class SimpleReferrals
2727
* SimpleReferrals::custom_fields()
2828
*
2929
* Loads custom profile fields
30-
*
30+
*
3131
* @param int $user The ID of a user previously loaded by {@link loadMemberData()}
3232
* @param array $area An array containing the action areas
3333
* @return void
@@ -51,7 +51,7 @@ public static function custom_fields($user, $area)
5151
*
5252
* It includes the referral in the member newly created account,
5353
* as well as attempting to find the referral found in the form.
54-
*
54+
*
5555
* @param array $regOptions The register options
5656
* @return void
5757
*/
@@ -98,7 +98,7 @@ public static function save_referral(&$regOptions, &$theme_vars, &$knownInts)
9898
* SimpleReferrals::update_count()
9999
*
100100
* Updates a member ref_count if set as the referral
101-
*
101+
*
102102
* @param array $regOptions The register options
103103
* @return void
104104
*/
@@ -132,7 +132,7 @@ public static function update_count($regOptions)
132132
*
133133
* Inserts a fake custom field in the register/signup view. It also does all the
134134
* checkings in case of errors and other unexpected situations.
135-
*
135+
*
136136
* @return void
137137
*/
138138
public static function register()
@@ -200,7 +200,7 @@ public static function register()
200200
* SimpleReferrals::profile()
201201
*
202202
* Inserts the custom field in the profile view
203-
*
203+
*
204204
* @return void
205205
*/
206206
public static function profile()
@@ -230,7 +230,7 @@ public static function profile()
230230
* SimpleReferrals::member_data()
231231
*
232232
* Include referral count in loadMemberData
233-
*
233+
*
234234
* @param string $columns The member columns
235235
* @param string $tablws Any additional tables
236236
* @param string $set What kind of data to load (normal, profile, minimal)
@@ -258,7 +258,7 @@ public static function member_data(&$columns, &$tables, &$set)
258258
* SimpleReferrals::member_context()
259259
*
260260
* Referrals count
261-
*
261+
*
262262
* @param array $data The monstrous array of user information
263263
* @param int $user The ID of a user previously loaded by {@link loadMemberData()}
264264
* @return void
@@ -290,7 +290,7 @@ public static function member_context(&$data, $user)
290290
* SimpleReferrals::admin()
291291
*
292292
* Adds the maintainance tab to the menu and sections
293-
*
293+
*
294294
* @param array $areas The monstrous admin array
295295
* @return void
296296
*/
@@ -308,7 +308,7 @@ public static function admin(&$areas)
308308
* SimpleReferrals::settings()
309309
*
310310
* Adds the settings to the mods settings page
311-
*
311+
*
312312
* @param array $config_vars The mod settings array
313313
* @return void
314314
*/
@@ -327,7 +327,7 @@ public static function settings(&$config_vars)
327327
* SimpleReferrals::maint_recount()
328328
*
329329
* Adds the maintainance area to the sections
330-
*
330+
*
331331
* @param array $areas The maint areas array
332332
* @return void
333333
*/
@@ -350,7 +350,7 @@ public static function maint_recount(&$areas)
350350
* SimpleReferrals::maintain_recount()
351351
*
352352
* Returns a finished message after running the task
353-
*
353+
*
354354
* @return void
355355
*/
356356
public static function maintain_recount()
@@ -366,7 +366,7 @@ public static function maintain_recount()
366366
*
367367
* Mimics the posts recount of smf, but it recounts the referrals for each user,
368368
* and cleans those that didn't actually have referrals
369-
*
369+
*
370370
* @return void
371371
*/
372372
public static function do_recount()

install.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* @package Simple Referrals
5-
* @version 1.0
5+
* @version 1.3
66
* @author Diego Andrés <diegoandres_cortes@outlook.com>
77
* @copyright Copyright (c) 2021, SMF Tricks
88
* @license https://www.gnu.org/licenses/gpl-3.0.en.html

package-info.xml

Lines changed: 2 additions & 2 deletions
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.3</version>
6+
<version>1.3.1</version>
77
<type>modification</type>
88
<install for="2.1 - 2.1.99, 2.1 RC4">
99
<!-- Mod Readme -->
@@ -32,7 +32,7 @@
3232
<hook hook="integrate_load_member_data" function="SimpleReferrals::member_data" file="$sourcedir/SimpleReferrals.php" />
3333
<hook hook="integrate_load_custom_profile_fields" function="SimpleReferrals::custom_fields" file="$sourcedir/SimpleReferrals.php" />
3434
<!-- Redirect -->
35-
<redirect url="?action=admin;area=modsettings">redirect.txt</redirect>
35+
<redirect url="?action=admin;area=modsettings" />
3636
</install>
3737

3838
<uninstall for="2.1 - 2.1.99, 2.1 RC4">

0 commit comments

Comments
 (0)