jenkins-bot has submitted this change and it was merged.

Change subject: Override SpecialPage::execute instead of setting a callback 
function
......................................................................


Override SpecialPage::execute instead of setting a callback function

Change-Id: I3c9bcaa29931926e98eacc78f1a0f418112151d6
---
M DisableAccount_body.php
1 file changed, 5 insertions(+), 3 deletions(-)

Approvals:
  Alex Monk: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/DisableAccount_body.php b/DisableAccount_body.php
index f5076f1..b3d556b 100644
--- a/DisableAccount_body.php
+++ b/DisableAccount_body.php
@@ -2,11 +2,13 @@
 
 class SpecialDisableAccount extends SpecialPage {
        function __construct() {
-               parent::__construct( 'DisableAccount', 'disableaccount',
-                                       true, array( $this, 'show' ) );
+               parent::__construct( 'DisableAccount', 'disableaccount' );
        }
 
-       public function show( $par ) {
+       public function execute( $par ) {
+               $this->setHeaders();
+               $this->checkPermissions();
+
                $formFields = array(
                        'account' => array(
                                'type' => 'text',

-- 
To view, visit https://gerrit.wikimedia.org/r/105427
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I3c9bcaa29931926e98eacc78f1a0f418112151d6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DisableAccount
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Alex Monk <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to