Index: trunk/extensions/CheckUser/CheckUser.php |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | # Recent changes data hook |
37 | 37 | global $wgHooks; |
38 | 38 | $wgHooks['RecentChange_save'][] = 'efUpdateCheckUserData'; |
39 | | -$wgHooks['EmailUser'][] = 'efUpdateCheckUserEmailData'; |
| 39 | +//$wgHooks['EmailUser'][] = 'efUpdateCheckUserEmailData'; // do not use at present |
40 | 40 | |
41 | 41 | $wgHooks['ParserTestTables'][] = 'efCheckUserParserTestTables'; |
42 | 42 | $wgHooks['LoadExtensionSchemaUpdates'][] = 'efCheckUserSchemaUpdates'; |
— | — | @@ -115,6 +115,8 @@ |
116 | 116 | * Saves user data into the cu_changes table |
117 | 117 | */ |
118 | 118 | function efUpdateCheckUserEmailData( $to, $from, $subject, $text ) { |
| 119 | + die("Do not use at present."); |
| 120 | + wfLoadExtensionMessages( 'CheckUser' ); |
119 | 121 | $user = User::newFromName( $to->name ); |
120 | 122 | $userPage = $user->getUserPage(); |
121 | 123 | // Get IP |