X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FSpecialPage.php;h=2816b873e76b0ea20fd99c3d703ee22d977ba35a;hb=8e8c887dce5696d3cb902faf3fb88d9bf8123523;hp=5b892fda7a52ae2cd1405e8126edc47df5bf45da;hpb=1c4daa97242e6068b00411c73ebbde7aff3ae39d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index 5b892fda7a..2816b873e7 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -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' ), + 'Contributions' => array( 'SpecialPage', 'Contributions' ), 'Emailuser' => array( 'UnlistedSpecialPage', 'Emailuser' ), 'Whatlinkshere' => array( 'UnlistedSpecialPage', 'Whatlinkshere' ), 'Recentchangeslinked' => array( 'UnlistedSpecialPage', 'Recentchangeslinked' ), 'Movepage' => array( 'UnlistedSpecialPage', 'Movepage' ), 'Blockme' => array( 'UnlistedSpecialPage', 'Blockme' ), 'Resetpass' => array( 'UnlistedSpecialPage', 'Resetpass' ), - 'Booksources' => array( 'SpecialPage', 'Booksources' ), + '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 {