r78793 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78792‎ | r78793 | r78794 >
Date:15:06, 22 December 2010
Author:ialex
Status:ok
Tags:
Comment:
Follow-up r78786: for consistency, removed array() when there's only one item
Modified paths:
  • /trunk/phase3/includes/SpecialPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialPage.php
@@ -84,36 +84,36 @@
8585 */
8686 static public $mList = array(
8787 # Maintenance Reports
88 - 'BrokenRedirects' => array( 'BrokenRedirectsPage' ),
89 - 'Deadendpages' => array( 'DeadendpagesPage' ),
90 - 'DoubleRedirects' => array( 'DoubleRedirectsPage' ),
91 - 'Longpages' => array( 'LongpagesPage' ),
92 - 'Ancientpages' => array( 'AncientpagesPage' ),
93 - 'Lonelypages' => array( 'LonelypagesPage' ),
94 - 'Fewestrevisions' => array( 'FewestrevisionsPage' ),
95 - 'Withoutinterwiki' => array( 'WithoutinterwikiPage' ),
 88+ 'BrokenRedirects' => 'BrokenRedirectsPage',
 89+ 'Deadendpages' => 'DeadendpagesPage',
 90+ 'DoubleRedirects' => 'DoubleRedirectsPage',
 91+ 'Longpages' => 'LongpagesPage',
 92+ 'Ancientpages' => 'AncientpagesPage',
 93+ 'Lonelypages' => 'LonelypagesPage',
 94+ 'Fewestrevisions' => 'FewestrevisionsPage',
 95+ 'Withoutinterwiki' => 'WithoutinterwikiPage',
9696 'Protectedpages' => 'SpecialProtectedpages',
9797 'Protectedtitles' => 'SpecialProtectedtitles',
98 - 'Shortpages' => array( 'ShortpagesPage' ),
99 - 'Uncategorizedcategories' => array( 'UncategorizedcategoriesPage' ),
100 - 'Uncategorizedimages' => array( 'UncategorizedimagesPage' ),
101 - 'Uncategorizedpages' => array( 'UncategorizedpagesPage' ),
102 - 'Uncategorizedtemplates' => array( 'UncategorizedtemplatesPage' ),
103 - 'Unusedcategories' => array( 'UnusedcategoriesPage' ),
104 - 'Unusedimages' => array( 'UnusedimagesPage' ),
105 - 'Unusedtemplates' => array( 'UnusedtemplatesPage' ),
106 - 'Unwatchedpages' => array( 'UnwatchedpagesPage' ),
107 - 'Wantedcategories' => array( 'WantedcategoriesPage' ),
108 - 'Wantedfiles' => array( 'WantedfilesPage' ),
109 - 'Wantedpages' => array( 'WantedpagesPage' ),
110 - 'Wantedtemplates' => array( 'WantedtemplatesPage' ),
 98+ 'Shortpages' => 'ShortpagesPage',
 99+ 'Uncategorizedcategories' => 'UncategorizedcategoriesPage',
 100+ 'Uncategorizedimages' => 'UncategorizedimagesPage',
 101+ 'Uncategorizedpages' => 'UncategorizedpagesPage',
 102+ 'Uncategorizedtemplates' => 'UncategorizedtemplatesPage',
 103+ 'Unusedcategories' => 'UnusedcategoriesPage',
 104+ 'Unusedimages' => 'UnusedimagesPage',
 105+ 'Unusedtemplates' => 'UnusedtemplatesPage',
 106+ 'Unwatchedpages' => 'UnwatchedpagesPage',
 107+ 'Wantedcategories' => 'WantedcategoriesPage',
 108+ 'Wantedfiles' => 'WantedfilesPage',
 109+ 'Wantedpages' => 'WantedpagesPage',
 110+ 'Wantedtemplates' => 'WantedtemplatesPage',
111111
112112 # List of pages
113113 'Allpages' => 'SpecialAllpages',
114114 'Prefixindex' => 'SpecialPrefixindex',
115115 'Categories' => 'SpecialCategories',
116 - 'Disambiguations' => array( 'DisambiguationsPage' ),
117 - 'Listredirects' => array( 'ListredirectsPage' ),
 116+ 'Disambiguations' => 'DisambiguationsPage',
 117+ 'Listredirects' => 'ListredirectsPage',
118118
119119 # Login/create account
120120 'Userlogin' => 'LoginForm',
@@ -160,17 +160,17 @@
161161 'Unlockdb' => 'SpecialUnlockdb',
162162
163163 # Redirecting special pages
164 - 'LinkSearch' => array( 'LinkSearchPage' ),
 164+ 'LinkSearch' => 'LinkSearchPage',
165165 'Randompage' => 'Randompage',
166166 'Randomredirect' => 'SpecialRandomredirect',
167167
168168 # High use pages
169 - 'Mostlinkedcategories' => array( 'MostlinkedCategoriesPage' ),
170 - 'Mostimages' => array( 'MostimagesPage' ),
171 - 'Mostlinked' => array( 'MostlinkedPage' ),
172 - 'Mostlinkedtemplates' => array( 'MostlinkedTemplatesPage' ),
173 - 'Mostcategories' => array( 'MostcategoriesPage' ),
174 - 'Mostrevisions' => array( 'MostrevisionsPage' ),
 169+ 'Mostlinkedcategories' => 'MostlinkedCategoriesPage',
 170+ 'Mostimages' => 'MostimagesPage',
 171+ 'Mostlinked' => 'MostlinkedPage',
 172+ 'Mostlinkedtemplates' => 'MostlinkedTemplatesPage',
 173+ 'Mostcategories' => 'MostcategoriesPage',
 174+ 'Mostrevisions' => 'MostrevisionsPage',
175175
176176 # Page tools
177177 'ComparePages' => 'SpecialComparePages',
@@ -220,7 +220,7 @@
221221 self::$mListInitialised = true;
222222
223223 if( !$wgDisableCounters ) {
224 - self::$mList['Popularpages'] = array( 'PopularpagesPage' );
 224+ self::$mList['Popularpages'] = 'PopularpagesPage';
225225 }
226226
227227 if( !$wgDisableInternalSearch ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r78786Merge querypage-work2 branch from trunk. The most relevant changes are:...catrope14:16, 22 December 2010

Status & tagging log