From 5d245bc12d314d7ce62810830a7631a7792dd7c8 Mon Sep 17 00:00:00 2001 From: Arne Heizmann Date: Tue, 10 Aug 2004 16:58:37 +0000 Subject: [PATCH] If the site options are set in such a way that only sysops (or only developers) can create new accounts, currently the only way for them to do that is to go to Special:Userlogin manually. This patch adds a link to that page on Special:Specialpages, but only if the options are set in this way. --- includes/SpecialPage.php | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index 46b8aaa6dd..dab7b7aa4a 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -1,7 +1,24 @@ new UnlistedSpecialPage( "Userlogin" ), + "Userlogin" => new SpecialPage( "Userlogin", $userlogin_restr, $userlogin_listed ), "Userlogout" => new UnlistedSpecialPage( "Userlogout" ), "Preferences" => new SpecialPage( "Preferences" ), "Watchlist" => new SpecialPage( "Watchlist" ), -- 2.20.1