X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSpecialPageFactory.php;h=add7efcb5a55a1ce6be0a810782c1ca953600541;hb=510c1d1fd027a90e10d89b249351dec8ab8cb98a;hp=0e0fb331f7e76d2262d53241c966924a210c7d6a;hpb=e937611cc523e558c2fdef04c92ee89be7c77b7a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SpecialPageFactory.php b/includes/SpecialPageFactory.php index 0e0fb331f7..add7efcb5a 100644 --- a/includes/SpecialPageFactory.php +++ b/includes/SpecialPageFactory.php @@ -95,7 +95,7 @@ class SpecialPageFactory { 'Preferences' => 'SpecialPreferences', 'Contributions' => 'SpecialContributions', 'Listgrouprights' => 'SpecialListGroupRights', - 'Listusers' => 'SpecialListUsers' , + 'Listusers' => 'SpecialListUsers', 'Listadmins' => 'SpecialListAdmins', 'Listbots' => 'SpecialListBots', 'Activeusers' => 'SpecialActiveUsers', @@ -119,7 +119,7 @@ class SpecialPageFactory { 'Upload' => 'SpecialUpload', 'UploadStash' => 'SpecialUploadStash', - // Wiki data and tools + // Data and tools 'Statistics' => 'SpecialStatistics', 'Allmessages' => 'SpecialAllmessages', 'Version' => 'SpecialVersion', @@ -336,7 +336,7 @@ class SpecialPageFactory { * Find the object with a given name and return it (or NULL) * * @param $name String Special page name, may be localised and/or an alias - * @return SpecialPage object or null if the page doesn't exist + * @return SpecialPage|null SpecialPage object or null if the page doesn't exist */ public static function getPage( $name ) { list( $realName, /*...*/ ) = self::resolveAlias( $name ); @@ -476,7 +476,7 @@ class SpecialPageFactory { if ( $name != $page->getLocalName() && !$context->getRequest()->wasPosted() ) { $query = $context->getRequest()->getQueryValues(); unset( $query['title'] ); - $query = wfArrayToCGI( $query ); + $query = wfArrayToCgi( $query ); $title = $page->getTitle( $par ); $url = $title->getFullUrl( $query ); $context->getOutput()->redirect( $url );