From: Alexandre Emsenhuber Date: Wed, 22 Dec 2010 15:06:08 +0000 (+0000) Subject: Follow-up r78786: for consistency, removed array() when there's only one item X-Git-Tag: 1.31.0-rc.0~33193 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=433eee2f1beae79461d971dae55e50ddda62c88e;p=lhc%2Fweb%2Fwiklou.git Follow-up r78786: for consistency, removed array() when there's only one item --- diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index ef8caa59c2..e32fb87c06 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -84,36 +84,36 @@ class SpecialPage { */ static public $mList = array( # Maintenance Reports - 'BrokenRedirects' => array( 'BrokenRedirectsPage' ), - 'Deadendpages' => array( 'DeadendpagesPage' ), - 'DoubleRedirects' => array( 'DoubleRedirectsPage' ), - 'Longpages' => array( 'LongpagesPage' ), - 'Ancientpages' => array( 'AncientpagesPage' ), - 'Lonelypages' => array( 'LonelypagesPage' ), - 'Fewestrevisions' => array( 'FewestrevisionsPage' ), - 'Withoutinterwiki' => array( 'WithoutinterwikiPage' ), + 'BrokenRedirects' => 'BrokenRedirectsPage', + 'Deadendpages' => 'DeadendpagesPage', + 'DoubleRedirects' => 'DoubleRedirectsPage', + 'Longpages' => 'LongpagesPage', + 'Ancientpages' => 'AncientpagesPage', + 'Lonelypages' => 'LonelypagesPage', + 'Fewestrevisions' => 'FewestrevisionsPage', + 'Withoutinterwiki' => 'WithoutinterwikiPage', 'Protectedpages' => 'SpecialProtectedpages', 'Protectedtitles' => 'SpecialProtectedtitles', - 'Shortpages' => array( 'ShortpagesPage' ), - 'Uncategorizedcategories' => array( 'UncategorizedcategoriesPage' ), - 'Uncategorizedimages' => array( 'UncategorizedimagesPage' ), - 'Uncategorizedpages' => array( 'UncategorizedpagesPage' ), - 'Uncategorizedtemplates' => array( 'UncategorizedtemplatesPage' ), - 'Unusedcategories' => array( 'UnusedcategoriesPage' ), - 'Unusedimages' => array( 'UnusedimagesPage' ), - 'Unusedtemplates' => array( 'UnusedtemplatesPage' ), - 'Unwatchedpages' => array( 'UnwatchedpagesPage' ), - 'Wantedcategories' => array( 'WantedcategoriesPage' ), - 'Wantedfiles' => array( 'WantedfilesPage' ), - 'Wantedpages' => array( 'WantedpagesPage' ), - 'Wantedtemplates' => array( 'WantedtemplatesPage' ), + 'Shortpages' => 'ShortpagesPage', + 'Uncategorizedcategories' => 'UncategorizedcategoriesPage', + 'Uncategorizedimages' => 'UncategorizedimagesPage', + 'Uncategorizedpages' => 'UncategorizedpagesPage', + 'Uncategorizedtemplates' => 'UncategorizedtemplatesPage', + 'Unusedcategories' => 'UnusedcategoriesPage', + 'Unusedimages' => 'UnusedimagesPage', + 'Unusedtemplates' => 'UnusedtemplatesPage', + 'Unwatchedpages' => 'UnwatchedpagesPage', + 'Wantedcategories' => 'WantedcategoriesPage', + 'Wantedfiles' => 'WantedfilesPage', + 'Wantedpages' => 'WantedpagesPage', + 'Wantedtemplates' => 'WantedtemplatesPage', # List of pages 'Allpages' => 'SpecialAllpages', 'Prefixindex' => 'SpecialPrefixindex', 'Categories' => 'SpecialCategories', - 'Disambiguations' => array( 'DisambiguationsPage' ), - 'Listredirects' => array( 'ListredirectsPage' ), + 'Disambiguations' => 'DisambiguationsPage', + 'Listredirects' => 'ListredirectsPage', # Login/create account 'Userlogin' => 'LoginForm', @@ -160,17 +160,17 @@ class SpecialPage { 'Unlockdb' => 'SpecialUnlockdb', # Redirecting special pages - 'LinkSearch' => array( 'LinkSearchPage' ), + 'LinkSearch' => 'LinkSearchPage', 'Randompage' => 'Randompage', 'Randomredirect' => 'SpecialRandomredirect', # High use pages - 'Mostlinkedcategories' => array( 'MostlinkedCategoriesPage' ), - 'Mostimages' => array( 'MostimagesPage' ), - 'Mostlinked' => array( 'MostlinkedPage' ), - 'Mostlinkedtemplates' => array( 'MostlinkedTemplatesPage' ), - 'Mostcategories' => array( 'MostcategoriesPage' ), - 'Mostrevisions' => array( 'MostrevisionsPage' ), + 'Mostlinkedcategories' => 'MostlinkedCategoriesPage', + 'Mostimages' => 'MostimagesPage', + 'Mostlinked' => 'MostlinkedPage', + 'Mostlinkedtemplates' => 'MostlinkedTemplatesPage', + 'Mostcategories' => 'MostcategoriesPage', + 'Mostrevisions' => 'MostrevisionsPage', # Page tools 'ComparePages' => 'SpecialComparePages', @@ -220,7 +220,7 @@ class SpecialPage { self::$mListInitialised = true; if( !$wgDisableCounters ) { - self::$mList['Popularpages'] = array( 'PopularpagesPage' ); + self::$mList['Popularpages'] = 'PopularpagesPage'; } if( !$wgDisableInternalSearch ) {