X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSpecialPage.php;h=e273f28f27b9bd90682a4b4c7a80fbc9427c3278;hb=1f76c475d482c257bffa06ce116a3e03e8f72f52;hp=182c1497ec5324162c673914d5b33fdd1b5696b4;hpb=1ade5c518b3e89ca83cbd7650ca01621938f9681;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index 182c1497ec..e273f28f27 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -92,8 +92,8 @@ class SpecialPage { 'Lonelypages' => array( 'SpecialPage', 'Lonelypages' ), 'Fewestrevisions' => array( 'SpecialPage', 'Fewestrevisions' ), 'Withoutinterwiki' => array( 'SpecialPage', 'Withoutinterwiki' ), - 'Protectedpages' => array( 'SpecialPage', 'Protectedpages' ), - 'Protectedtitles' => array( 'SpecialPage', 'Protectedtitles' ), + 'Protectedpages' => 'SpecialProtectedpages', + 'Protectedtitles' => 'SpecialProtectedtitles', 'Shortpages' => array( 'SpecialPage', 'Shortpages' ), 'Uncategorizedcategories' => array( 'SpecialPage', 'Uncategorizedcategories' ), 'Uncategorizedimages' => array( 'SpecialPage', 'Uncategorizedimages' ), @@ -111,7 +111,7 @@ class SpecialPage { # List of pages 'Allpages' => 'SpecialAllpages', 'Prefixindex' => 'SpecialPrefixindex', - 'Categories' => array( 'SpecialPage', 'Categories' ), + 'Categories' => 'SpecialCategories', 'Disambiguations' => array( 'SpecialPage', 'Disambiguations' ), 'Listredirects' => array( 'SpecialPage', 'Listredirects' ), @@ -120,8 +120,8 @@ class SpecialPage { 'CreateAccount' => array( 'SpecialRedirectToSpecial', 'CreateAccount', 'Userlogin', 'signup', array( 'uselang' ) ), # Users and rights - 'Blockip' => array( 'SpecialPage', 'Blockip', 'block' ), - 'Ipblocklist' => array( 'SpecialPage', 'Ipblocklist' ), + 'Blockip' => 'IPBlockForm', + 'Ipblocklist' => 'IPUnblockForm', 'Unblock' => array( 'SpecialRedirectToSpecial', 'Unblock', 'Ipblocklist', false, array( 'uselang', 'ip', 'id' ), array( 'action' => 'unblock' ) ), 'Resetpass' => 'SpecialResetpass', 'DeletedContributions' => 'DeletedContributionsPage', @@ -129,12 +129,14 @@ class SpecialPage { 'Contributions' => 'SpecialContributions', 'Listgrouprights' => 'SpecialListGroupRights', 'Listusers' => array( 'SpecialPage', 'Listusers' ), + 'Listadmins' => array( 'SpecialRedirectToSpecial', 'Listadmins', 'Listusers', 'sysop' ), + 'Listbots' => array( 'SpecialRedirectToSpecial', 'Listbots', 'Listusers', 'bot' ), 'Activeusers' => 'SpecialActiveUsers', 'Userrights' => 'UserrightsPage', # Recent changes and logs 'Newimages' => array( 'IncludableSpecialPage', 'Newimages' ), - 'Log' => array( 'SpecialPage', 'Log' ), + 'Log' => 'SpecialLog', 'Watchlist' => array( 'SpecialPage', 'Watchlist' ), 'Newpages' => 'SpecialNewpages', 'Recentchanges' => 'SpecialRecentchanges', @@ -181,18 +183,16 @@ class SpecialPage { # Unlisted / redirects 'Blankpage' => 'SpecialBlankpage', - 'Blockme' => array( 'UnlistedSpecialPage', 'Blockme' ), + 'Blockme' => 'SpecialBlockme', 'Emailuser' => 'SpecialEmailUser', - 'Listadmins' => array( 'SpecialRedirectToSpecial', 'Listadmins', 'Listusers', 'sysop' ), - 'Listbots' => array( 'SpecialRedirectToSpecial', 'Listbots', 'Listusers', 'bot' ), - 'Movepage' => array( 'UnlistedSpecialPage', 'Movepage' ), - 'Mycontributions' => array( 'SpecialMycontributions' ), - 'Mypage' => array( 'SpecialMypage' ), - 'Mytalk' => array( 'SpecialMytalk' ), + 'Movepage' => 'MovePageForm', + 'Mycontributions' => 'SpecialMycontributions', + 'Mypage' => 'SpecialMypage', + 'Mytalk' => 'SpecialMytalk', 'Revisiondelete' => 'SpecialRevisionDelete', 'RevisionMove' => 'SpecialRevisionMove', - 'Specialpages' => array( 'UnlistedSpecialPage', 'Specialpages' ), - 'Userlogout' => array( 'UnlistedSpecialPage', 'Userlogout' ), + 'Specialpages' => 'SpecialSpecialpages', + 'Userlogout' => 'SpecialUserlogout', ); static public $mAliases; @@ -915,7 +915,7 @@ class SpecialPage { class UnlistedSpecialPage extends SpecialPage { function UnlistedSpecialPage( $name, $restriction = '', $function = false, $file = 'default' ) { - SpecialPage::SpecialPage( $name, $restriction, false, $function, $file ); + parent::SpecialPage( $name, $restriction, false, $function, $file ); } } @@ -926,7 +926,7 @@ class UnlistedSpecialPage extends SpecialPage class IncludableSpecialPage extends SpecialPage { function IncludableSpecialPage( $name, $restriction = '', $listed = true, $function = false, $file = 'default' ) { - SpecialPage::SpecialPage( $name, $restriction, $listed, $function, $file, true ); + parent::SpecialPage( $name, $restriction, $listed, $function, $file, true ); } }