Index: trunk/extensions/NewUserMessage/NewUserMessage.class.php |
— | — | @@ -16,13 +16,14 @@ |
17 | 17 | /* |
18 | 18 | * Add the template message if the users talk page doesn't already exist |
19 | 19 | */ |
20 | | - static function createNewUserMessage($user) { |
21 | | - if (!$talk->exists()) { |
| 20 | + static function createNewUserMessage( $user ) { |
| 21 | + $talk = $user->getTalkPage(); |
| 22 | + |
| 23 | + if ( !$talk->exists() ) { |
22 | 24 | global $wgUser, $wgNewUserMinorEdit, $wgNewUserSuppressRC; |
23 | 25 | |
24 | 26 | $name = $user->getName(); |
25 | 27 | $realName = $user->getRealName(); |
26 | | - $talk = $user->getTalkPage(); |
27 | 28 | |
28 | 29 | wfLoadExtensionMessages( 'NewUserMessage' ); |
29 | 30 | |