* Further work on rev_deleted; changed to a bitfield with several data-hiding
[lhc/web/wiklou.git] / includes / SpecialPage.php
index 38c2e42..eb64341 100644 (file)
@@ -70,18 +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' )
+       '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' );
 }
@@ -227,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 );
 
@@ -347,7 +346,7 @@ class SpecialPage
        function getFile() { return $this->mFile; }
        function isListed() { return $this->mListed; }
        /**#@-*/
-       
+
        /**#@+
          * Accessor and mutator
          */
@@ -359,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)
@@ -399,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();