-
Notifications
You must be signed in to change notification settings - Fork 0
/
mod_register.xml
27 lines (21 loc) · 916 Bytes
/
mod_register.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>temar:TEA</id>
<version>1.00</version>
<file name="$sourcedir/Register.php">
<operation>
<search position="replace"><![CDATA[ // Lets check for other errors before trying to register the member.]]></search>
<add><![CDATA[ global $tea;
$error = $tea -> reg_checks();
if(!empty($error)) //error
$reg_errors[] = $error;
// Lets check for other errors before trying to register the member.]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[ $memberID = registerMember($regOptions, true);]]></search>
<add><![CDATA[ $memberID = registerMember($regOptions, true);
$tea -> tea_set_api($memberID, true);]]></add>
</operation>
</file>
</modification>