r82614 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82613‎ | r82614 | r82615 >
Date:17:34, 22 February 2011
Author:ialex
Status:deferred
Tags:
Comment:
* Removed usage of $wgTitle
* Made the extension work with current version of MediaWiki
Modified paths:
  • /trunk/extensions/EmailUsers/SpecialEmailUsers.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EmailUsers/SpecialEmailUsers.php
@@ -10,16 +10,16 @@
1111 }
1212
1313 function execute( $par ) {
14 - global $wgOut, $wgUser, $wgTitle, $wgEmailAuthentication;
 14+ global $wgOut, $wgUser, $wgEmailAuthentication;
1515
1616 $this->setHeaders();
1717
1818 if ( !$this->userCanExecute( $wgUser ) ) {
19 - $this->displayRestrictionError();
20 - return;
 19+ #$this->displayRestrictionError();
 20+ #return;
2121 }
2222
23 - $error = EmailUserForm::getPermissionsError( $wgUser, $wgUser->editToken() );
 23+ $error = SpecialEmailUser::getPermissionsError( $wgUser, $wgUser->editToken() );
2424
2525 if ( $error ) {
2626 switch ( $error ) {
@@ -96,7 +96,7 @@
9797 );
9898
9999 $htmlForm = new HTMLForm( $form );
100 - $htmlForm->setTitle( $wgTitle );
 100+ $htmlForm->setTitle( $this->getTitle( $par ) );
101101 $htmlForm->setSubmitCallback( array( $this, 'submit' ) );
102102
103103 $this->outputHeader();

Follow-up revisions

RevisionCommit summaryAuthorDate
r82615Fix for r82614: removed debugging codeialex17:38, 22 February 2011

Status & tagging log