Polish off all special-page-by-global-function instances in extensions. The preferre...
authorHappy-melon <happy-melon@users.mediawiki.org>
Thu, 14 Apr 2011 14:39:57 +0000 (14:39 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Thu, 14 Apr 2011 14:39:57 +0000 (14:39 +0000)
ConfirmEdit.php
ConfirmEdit_body.php

index b2b4e8c5265f7f2495dfd99e4fb89ad8a113de0a..446ed6b0b188331d5444ed40f7e076d279284bc7 100644 (file)
@@ -179,7 +179,7 @@ $wgCaptchaWhitelist = false;
 $wgCaptchaRegexes = array();
 
 /** Register special page */
 $wgCaptchaRegexes = array();
 
 /** Register special page */
-$wgSpecialPages['Captcha'] = array( /*class*/'CaptchaSpecialPage', /*name*/'Captcha' );
+$wgSpecialPages['Captcha'] = 'CaptchaSpecialPage';
 
 $wgConfirmEditIP = dirname( __FILE__ );
 $wgExtensionMessagesFiles['ConfirmEdit'] = "$wgConfirmEditIP/ConfirmEdit.i18n.php";
 
 $wgConfirmEditIP = dirname( __FILE__ );
 $wgExtensionMessagesFiles['ConfirmEdit'] = "$wgConfirmEditIP/ConfirmEdit.i18n.php";
index 2c2f0c7597db907ef4cd6fa4a49a60ee203b337a..e94f307e8b88a600128993730084afb75d09d0ae 100644 (file)
@@ -53,6 +53,9 @@ class ConfirmEditHooks {
 }
 
 class CaptchaSpecialPage extends UnlistedSpecialPage {
 }
 
 class CaptchaSpecialPage extends UnlistedSpecialPage {
+       public function __construct(){
+               parent::__construct( 'Captcha' );
+       }
        function execute( $par ) {
                $this->setHeaders();
                $instance = ConfirmEditHooks::getInstance();
        function execute( $par ) {
                $this->setHeaders();
                $instance = ConfirmEditHooks::getInstance();