Index: trunk/extensions/EmailUsers/SpecialEmailUsers.php |
— | — | @@ -10,16 +10,16 @@ |
11 | 11 | } |
12 | 12 | |
13 | 13 | function execute( $par ) { |
14 | | - global $wgOut, $wgUser, $wgTitle, $wgEmailAuthentication; |
| 14 | + global $wgOut, $wgUser, $wgEmailAuthentication; |
15 | 15 | |
16 | 16 | $this->setHeaders(); |
17 | 17 | |
18 | 18 | if ( !$this->userCanExecute( $wgUser ) ) { |
19 | | - $this->displayRestrictionError(); |
20 | | - return; |
| 19 | + #$this->displayRestrictionError(); |
| 20 | + #return; |
21 | 21 | } |
22 | 22 | |
23 | | - $error = EmailUserForm::getPermissionsError( $wgUser, $wgUser->editToken() ); |
| 23 | + $error = SpecialEmailUser::getPermissionsError( $wgUser, $wgUser->editToken() ); |
24 | 24 | |
25 | 25 | if ( $error ) { |
26 | 26 | switch ( $error ) { |
— | — | @@ -96,7 +96,7 @@ |
97 | 97 | ); |
98 | 98 | |
99 | 99 | $htmlForm = new HTMLForm( $form ); |
100 | | - $htmlForm->setTitle( $wgTitle ); |
| 100 | + $htmlForm->setTitle( $this->getTitle( $par ) ); |
101 | 101 | $htmlForm->setSubmitCallback( array( $this, 'submit' ) ); |
102 | 102 | |
103 | 103 | $this->outputHeader(); |