Index: trunk/phase3/includes/SpecialPage.php |
— | — | @@ -80,7 +80,7 @@ |
81 | 81 | |
82 | 82 | 'Userlogin' => array( 'SpecialPage', 'Userlogin' ), |
83 | 83 | 'Userlogout' => array( 'UnlistedSpecialPage', 'Userlogout' ), |
84 | | - 'CreateAccount' => array( 'SpecialCreateAccount' ), |
| 84 | + 'CreateAccount' => array( 'SpecialRedirectToSpecial', 'CreateAccount', 'Userlogin', 'signup', array( 'uselang' ) ), |
85 | 85 | 'Preferences' => array( 'SpecialPage', 'Preferences' ), |
86 | 86 | 'Watchlist' => array( 'SpecialPage', 'Watchlist' ), |
87 | 87 | |
— | — | @@ -847,17 +847,3 @@ |
848 | 848 | return SpecialPage::getTitleFor( 'Contributions', $wgUser->getName() ); |
849 | 849 | } |
850 | 850 | } |
851 | | -/** |
852 | | - * Shortcut to construct a special page pointing to create account form. |
853 | | - * @addtogroup SpecialPage |
854 | | - */ |
855 | | -class SpecialCreateAccount extends SpecialPage { |
856 | | - function __construct() { |
857 | | - parent::__construct( 'CreateAccount' ); |
858 | | - $this->mAllowedRedirectParams = array( 'uselang' ); |
859 | | - } |
860 | | - |
861 | | - function getRedirect( $subpage ) { |
862 | | - return SpecialPage::getTitleFor( 'Userlogin', 'signup' ); |
863 | | - } |
864 | | -} |