From 69c148e983b4d19eae1f3858fd3e854be75d0924 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Wed, 23 Jan 2008 19:59:35 +0000 Subject: [PATCH] Tweak Special:CreateAccount again. Make it smarter without the needing of a new class. Thanks to ialex. --- includes/SpecialPage.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index a536180f80..dbc8be735b 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -80,7 +80,7 @@ class SpecialPage 'Userlogin' => array( 'SpecialPage', 'Userlogin' ), 'Userlogout' => array( 'UnlistedSpecialPage', 'Userlogout' ), - 'CreateAccount' => array( 'SpecialCreateAccount' ), + 'CreateAccount' => array( 'SpecialRedirectToSpecial', 'CreateAccount', 'Userlogin', 'signup', array( 'uselang' ) ), 'Preferences' => array( 'SpecialPage', 'Preferences' ), 'Watchlist' => array( 'SpecialPage', 'Watchlist' ), @@ -847,17 +847,3 @@ class SpecialMycontributions extends UnlistedSpecialPage { return SpecialPage::getTitleFor( 'Contributions', $wgUser->getName() ); } } -/** - * Shortcut to construct a special page pointing to create account form. - * @addtogroup SpecialPage - */ -class SpecialCreateAccount extends SpecialPage { - function __construct() { - parent::__construct( 'CreateAccount' ); - $this->mAllowedRedirectParams = array( 'uselang' ); - } - - function getRedirect( $subpage ) { - return SpecialPage::getTitleFor( 'Userlogin', 'signup' ); - } -} -- 2.20.1