Index: trunk/extensions/CheckUser/CheckUser.hooks.php |
— | — | @@ -150,12 +150,24 @@ |
151 | 151 | * |
152 | 152 | * @return true |
153 | 153 | */ |
154 | | - public static function updateAutoCreateData( User $user ) { |
| 154 | + public static function onAuthPluginAutoCreate( User $user ) { |
155 | 155 | return self::logUserAccountCreation( $user, 'checkuser-autocreate-action' ); |
156 | 156 | } |
157 | 157 | |
158 | 158 | /** |
| 159 | + * Hook function to store registration data |
| 160 | + * Saves user data into the cu_changes table |
| 161 | + * |
159 | 162 | * @param $user User |
| 163 | + * @param $byEmail bool |
| 164 | + * @return bool |
| 165 | + */ |
| 166 | + public static function onAddNewAccount( User $user, $byEmail ) { |
| 167 | + return self::logUserAccountCreation( $user, 'checkuser-create-action' ); |
| 168 | + } |
| 169 | + |
| 170 | + /** |
| 171 | + * @param $user User |
160 | 172 | * @param $actiontext string |
161 | 173 | * @return bool |
162 | 174 | */ |
— | — | @@ -197,18 +209,6 @@ |
198 | 210 | } |
199 | 211 | |
200 | 212 | /** |
201 | | - * Hook function to store registration data |
202 | | - * Saves user data into the cu_changes table |
203 | | - * |
204 | | - * @param $user User |
205 | | - * @param $byEmail bool |
206 | | - * @return bool |
207 | | - */ |
208 | | - public static function addNewAccount( User $user, $byEmail ) { |
209 | | - return self::logUserAccountCreation( $user, 'checkuser-create-action' ); |
210 | | - } |
211 | | - |
212 | | - /** |
213 | 213 | * Hook function to prune data from the cu_changes table |
214 | 214 | */ |
215 | 215 | public static function maybePruneIPData() { |
Index: trunk/extensions/CheckUser/CheckUser.php |
— | — | @@ -61,8 +61,8 @@ |
62 | 62 | $wgHooks['RecentChange_save'][] = 'CheckUserHooks::updateCheckUserData'; |
63 | 63 | $wgHooks['EmailUser'][] = 'CheckUserHooks::updateCUEmailData'; |
64 | 64 | $wgHooks['User::mailPasswordInternal'][] = 'CheckUserHooks::updateCUPasswordResetData'; |
65 | | -$wgHooks['AuthPluginAutoCreate'][] = 'CheckUserHooks::updateAutoCreateData'; |
66 | | -$wgHooks['AddNewAccount'][] = 'CheckUserHooks::addNewAccount'; |
| 65 | +$wgHooks['AuthPluginAutoCreate'][] = 'CheckUserHooks::onAuthPluginAutoCreate'; |
| 66 | +$wgHooks['AddNewAccount'][] = 'CheckUserHooks::onAddNewAccount'; |
67 | 67 | |
68 | 68 | # Occasional pruning of CU data |
69 | 69 | $wgHooks['ArticleEditUpdatesDeleteFromRecentchanges'][] = 'CheckUserHooks::maybePruneIPData'; |