X-Git-Url: https://git.cyclocoop.org/admin/?a=blobdiff_plain;f=includes%2FSpecialPage.php;h=eb643411d2ea406ff045125e5130c733d8601428;hb=103be1dda1e572d6af600228eff01b1a929ca7a6;hp=737e0b434b94a930894ad2b2588692265e7a29db;hpb=0d4bd9e2a71a665693a452f8d42186edc15a104d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index 737e0b434b..eb643411d2 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -70,17 +70,17 @@ $wgSpecialPages = array( 'Allmessages' => new SpecialPage( 'Allmessages' ), 'Log' => new SpecialPage( 'Log' ), 'Blockip' => new SpecialPage( 'Blockip', 'block' ), - 'Undelete' => new SpecialPage( 'Undelete' ), + 'Undelete' => new SpecialPage( 'Undelete', 'deletedhistory' ), "Import" => new SpecialPage( "Import", 'import' ), 'Lockdb' => new SpecialPage( 'Lockdb', 'siteadmin' ), 'Unlockdb' => new SpecialPage( 'Unlockdb', 'siteadmin' ), 'Userrights' => new SpecialPage( 'Userrights', 'userrights' ), 'MIMEsearch' => new SpecialPage( 'MIMEsearch' ), + 'Unwatchedpages' => new SpecialPage( 'Unwatchedpages', 'unwatchedpages' ), + 'Listredirects' => new SpecialPage( 'Listredirects' ), + 'Revisiondelete' => new SpecialPage( 'Revisiondelete', 'deleterevision' ), ); -if ( $wgUseValidation ) - $wgSpecialPages['Validate'] = new SpecialPage( 'Validate' ); - if( !$wgDisableCounters ) { $wgSpecialPages['Popularpages'] = new SpecialPage( 'Popularpages' ); } @@ -93,9 +93,6 @@ if( $wgEmailAuthentication ) { $wgSpecialPages['Confirmemail'] = new UnlistedSpecialPage( 'Confirmemail' ); } -if ( $wgEnableUnwatchedpages ) - $wgSpecialPages['Unwatchedpages'] = new SpecialPage( 'Unwatchedpages' ); - /** * Parent special page class, also static functions for handling the special * page list @@ -229,7 +226,7 @@ class SpecialPage * @param $including output is being captured for use in {{special:whatever}} */ function executePath( &$title, $including = false ) { - global $wgSpecialPages, $wgOut, $wgTitle; + global $wgOut, $wgTitle; $fname = 'SpecialPage::executePath'; wfProfileIn( $fname ); @@ -349,7 +346,7 @@ class SpecialPage function getFile() { return $this->mFile; } function isListed() { return $this->mListed; } /**#@-*/ - + /**#@+ * Accessor and mutator */ @@ -361,7 +358,7 @@ class SpecialPage function includable( $x = NULL ) { return wfSetVar( $this->mIncludable, $x ); } function including( $x = NULL ) { return wfSetVar( $this->mIncluding, $x ); } /**#@-*/ - + /** * Checks if the given user (identified by an object) can execute this * special page (as defined by $mRestriction) @@ -401,7 +398,7 @@ class SpecialPage * Checks user permissions, calls the function given in mFunction */ function execute( $par ) { - global $wgUser, $wgOut, $wgTitle; + global $wgUser; $this->setHeaders();