(bug 9046) Special page to list pages without language links
[lhc/web/wiklou.git] / includes / SpecialPage.php
index 92aa4cb..2816b87 100644 (file)
@@ -17,8 +17,7 @@
  * SpecialPage::$mList. To remove a core static special page at runtime, use
  * a SpecialPage_initList hook.
  *
- * @package MediaWiki
- * @subpackage SpecialPage
+ * @addtogroup SpecialPage
  */
 
 /**
@@ -28,7 +27,6 @@
 /**
  * Parent special page class, also static functions for handling the special
  * page list
- * @package MediaWiki
  */
 class SpecialPage
 {
@@ -109,18 +107,19 @@ class SpecialPage
                'Newpages'                  => array( 'IncludableSpecialPage', 'Newpages' ),
                'Ancientpages'              => array( 'SpecialPage', 'Ancientpages' ),
                'Deadendpages'              => array( 'SpecialPage', 'Deadendpages' ),
+               'Protectedpages'            => array( 'SpecialPage', 'Protectedpages' ),
                'Allpages'                  => array( 'IncludableSpecialPage', 'Allpages' ),
                'Prefixindex'               => array( 'IncludableSpecialPage', 'Prefixindex' ) ,
                'Ipblocklist'               => array( 'SpecialPage', 'Ipblocklist' ),
                'Specialpages'              => array( 'UnlistedSpecialPage', 'Specialpages' ),
-               'Contributions'             => array( 'UnlistedSpecialPage', 'Contributions' ),
-               'NewbieContributions'       => array( 'SpecialPage', 'NewbieContributions' ),
+               'Contributions'             => array( 'SpecialPage', 'Contributions' ),
                'Emailuser'                 => array( 'UnlistedSpecialPage', 'Emailuser' ),
                'Whatlinkshere'             => array( 'UnlistedSpecialPage', 'Whatlinkshere' ),
                'Recentchangeslinked'       => array( 'UnlistedSpecialPage', 'Recentchangeslinked' ),
                'Movepage'                  => array( 'UnlistedSpecialPage', 'Movepage' ),
                'Blockme'                   => array( 'UnlistedSpecialPage', 'Blockme' ),
-               'Booksources'               => array( 'SpecialPage', 'Booksources' ),
+               'Resetpass'                 => array( 'UnlistedSpecialPage', 'Resetpass' ),
+               'Booksources'               => 'SpecialBookSources',
                'Categories'                => array( 'SpecialPage', 'Categories' ),
                'Export'                    => array( 'SpecialPage', 'Export' ),
                'Version'                   => array( 'SpecialPage', 'Version' ),
@@ -138,6 +137,7 @@ class SpecialPage
                'Revisiondelete'            => array( 'SpecialPage', 'Revisiondelete', 'deleterevision' ),
                'Unusedtemplates'           => array( 'SpecialPage', 'Unusedtemplates' ),
                'Randomredirect'            => array( 'SpecialPage', 'Randomredirect' ),
+               'Withoutinterwiki'                      => array( 'SpecialPage', 'Withoutinterwiki' ),
 
                'Mypage'                    => array( 'SpecialMypage' ),
                'Mytalk'                    => array( 'SpecialMytalk' ),
@@ -410,7 +410,7 @@ class SpecialPage
                        $query = $_GET;
                        unset( $query['title'] );
                        $query = wfArrayToCGI( $query );
-                       $title = $page->getTitle();
+                       $title = $page->getTitle( $par );
                        $url = $title->getFullUrl( $query );
                        $wgOut->redirect( $url );
                        wfProfileOut( __METHOD__ );
@@ -535,7 +535,7 @@ class SpecialPage
                        $this->mFunction = $function;
                }
                if ( $file === 'default' ) {
-                       $this->mFile = "Special{$name}.php";
+                       $this->mFile = dirname(__FILE__) . "/Special{$name}.php";
                } else {
                        $this->mFile = $file;
                }
@@ -667,7 +667,7 @@ class SpecialPage
         * If the special page is a redirect, then get the Title object it redirects to. 
         * False otherwise.
         */
-       function getRedirect( $subpage = false ) {
+       function getRedirect( $subpage ) {
                return false;
        }
 
@@ -691,7 +691,6 @@ class SpecialPage
 
 /**
  * Shortcut to construct a special page which is unlisted by default
- * @package MediaWiki
  */
 class UnlistedSpecialPage extends SpecialPage
 {
@@ -702,7 +701,6 @@ class UnlistedSpecialPage extends SpecialPage
 
 /**
  * Shortcut to construct an includable special  page
- * @package MediaWiki
  */
 class IncludableSpecialPage extends SpecialPage
 {