Index: trunk/extensions/NewUserNotif/NewUserNotif.class.php |
— | — | @@ -87,11 +87,11 @@ |
88 | 88 | */ |
89 | 89 | private function makeSubject( $recipient, $user ) { |
90 | 90 | global $wgSitename; |
91 | | - $SubjectLine = ""; |
92 | | - wfRunHooks( 'NewUserNotifSubject', array( &$this, &$SubjectLine, $wgSitename, $recipient, $user ) ); |
93 | | - if (!strlen($SubjectLine) ) |
| 91 | + $subjectLine = ""; |
| 92 | + wfRunHooks( 'NewUserNotifSubject', array( &$this, &$subjectLine, $wgSitename, $recipient, $user ) ); |
| 93 | + if (!strlen($subjectLine) ) |
94 | 94 | return wfMsgForContent( 'newusernotifsubj', $wgSitename ); |
95 | | - return $SubjectLine; |
| 95 | + return $subjectLine; |
96 | 96 | } |
97 | 97 | |
98 | 98 | /** |
— | — | @@ -102,9 +102,9 @@ |
103 | 103 | */ |
104 | 104 | private function makeMessage( $recipient, $user ) { |
105 | 105 | global $wgSitename, $wgContLang; |
106 | | - $MessageBody = ""; |
107 | | - wfRunHooks( 'NewUserNotifBody', array( &$this, &$MessageBody, $wgSitename, $recipient, $user ) ); |
108 | | - if (!strlen($MessageBody) ) |
| 106 | + $messageBody = ""; |
| 107 | + wfRunHooks( 'NewUserNotifBody', array( &$this, &$messageBody, $wgSitename, $recipient, $user ) ); |
| 108 | + if (!strlen($messageBody) ) |
109 | 109 | return wfMsgForContent( |
110 | 110 | 'newusernotifbody', |
111 | 111 | $recipient, |
— | — | @@ -114,7 +114,7 @@ |
115 | 115 | $wgContLang->date( wfTimestampNow() ), |
116 | 116 | $wgContLang->time( wfTimestampNow() ) |
117 | 117 | ); |
118 | | - return $MessageBody; |
| 118 | + return $messageBody; |
119 | 119 | } |
120 | 120 | |
121 | 121 | /** |
Index: trunk/extensions/NewUserNotif/ExtendedParamsExample.php |
— | — | @@ -37,18 +37,18 @@ |
38 | 38 | * This function creates additional parameters which can be used in the email notification Subject Line for new users |
39 | 39 | * |
40 | 40 | * @param $callobj NewUserNotifier object (this). |
41 | | - * @param $SubjectLine String: Returns the message subject line |
42 | | - * @param $SiteName Site Name of the Wiki |
| 41 | + * @param $subjectLine String: Returns the message subject line |
| 42 | + * @param $siteName Site Name of the Wiki |
43 | 43 | * @param $recipient Email/User Name of the Message Recipient. |
44 | 44 | * @param $user User name of the added user |
45 | 45 | * @return true |
46 | 46 | */ |
47 | 47 | |
48 | | -function efNewUserNotifSubject ( $callobj , $SubjectLine , $SiteName , $recipient , $user ) |
| 48 | +function efNewUserNotifSubject ( $callobj , $subjectLine , $siteName , $recipient , $user ) |
49 | 49 | { |
50 | | - $SubjectLine = wfMsgForContent( |
| 50 | + $subjectLine = wfMsgForContent( |
51 | 51 | 'newusernotifsubj', |
52 | | - $SiteName, // $1 Site Name |
| 52 | + $siteName, // $1 Site Name |
53 | 53 | $user->getName() // $2 User Name |
54 | 54 | ); |
55 | 55 | return ( true ); |
— | — | @@ -58,26 +58,26 @@ |
59 | 59 | * This function creates additional parameters which can be used in the email notification message body for new users |
60 | 60 | * |
61 | 61 | * @param $callobj NewUserNotifier object (this). |
62 | | - * @param $MessageBody String: Returns the message body. |
63 | | - * @param $SiteName Site Name of the Wiki |
| 62 | + * @param $messageBody String: Returns the message body. |
| 63 | + * @param $siteName Site Name of the Wiki |
64 | 64 | * @param $recipient Email/User Name of the Message Recipient. |
65 | 65 | * @param $user User name of the added user |
66 | 66 | * @return true |
67 | 67 | */ |
68 | 68 | |
69 | | -function efNewUserNotifBody ( $callobj , $MessageBody , $SiteName , $recipient , $user ) |
| 69 | +function efNewUserNotifBody ( $callobj , $messageBody , $siteName , $recipient , $user ) |
70 | 70 | { |
71 | 71 | global $wgContLang; |
72 | | - $MessageBody = wfMsgForContent( |
| 72 | + $messageBody = wfMsgForContent( |
73 | 73 | 'newusernotifbody', |
74 | 74 | $recipient, // $1 Recipient (of notification message) |
75 | 75 | $user->getName(), // $2 User Name |
76 | | - $SiteName, // $3 Site Name |
| 76 | + $siteName, // $3 Site Name |
77 | 77 | $wgContLang->timeAndDate( wfTimestampNow() ), // $4 Time and date stamp |
78 | 78 | $wgContLang->date( wfTimestampNow() ), // $5 Date Stamp |
79 | 79 | $wgContLang->time( wfTimestampNow() ), // $6 Time Stamp |
80 | 80 | $user->getEmail(), // $7 email |
81 | | - rawurlencode($SiteName), // $8 Site name encoded for email message link |
| 81 | + rawurlencode($siteName), // $8 Site name encoded for email message link |
82 | 82 | wfGetIP(), // $9 Submitter's IP Address |
83 | 83 | rawurlencode($user->getName()) // $10 User Name encoded for email message link |
84 | 84 | ); |
Index: trunk/extensions/NewUserNotif/RELEASE-NOTES |
— | — | @@ -1,7 +1,7 @@ |
2 | 2 | NEW USER EMAIL NOTIFICATION EXTENSION |
3 | 3 | |
4 | 4 | Version 1.5 |
5 | | - � 2006-2007 Rob Church, maintained by jpond |
| 5 | + © 2006-2007 Rob Church, maintained by jpond |
6 | 6 | |
7 | 7 | This is free software licenced under the GNU General Public Licence. Please |
8 | 8 | see http://www.gnu.org/copyleft/gpl.html for further details, including the |