Add Special:CreateAccount to Special:Specialpages
authorThis, that and the other <at.light@live.com.au>
Fri, 30 Aug 2013 11:53:32 +0000 (21:53 +1000)
committerTTO <at.light@live.com.au>
Thu, 19 Sep 2013 10:58:45 +0000 (10:58 +0000)
Bug: 53447
Change-Id: I4423e5beeb7b72814f4ee839880ec4b835d14640

includes/SpecialPage.php

index 94782db..61630a9 100644 (file)
@@ -1229,6 +1229,15 @@ class SpecialCreateAccount extends SpecialRedirectToSpecial {
        function __construct() {
                parent::__construct( 'CreateAccount', 'Userlogin', 'signup', array( 'uselang' ) );
        }
+
+       // No reason to hide this link on Special:Specialpages
+       public function isListed() {
+               return true;
+       }
+
+       protected function getGroupName() {
+               return 'login';
+       }
 }
 /**
  * SpecialMypage, SpecialMytalk and SpecialMycontributions special pages