From: Rohan Date: Mon, 16 Jun 2014 14:52:27 +0000 (+0530) Subject: Removes deprecated $wgUseCommaCount variable X-Git-Tag: 1.31.0-rc.0~14995^2 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=3b57bd5fcae51d924a65116d6ec07475cade4bac;p=lhc%2Fweb%2Fwiklou.git Removes deprecated $wgUseCommaCount variable Also sets the default value of $wgArticleCountMethod to 'link' Bug: 60454 Change-Id: I31c3fe837b59e693d03ed403c8cb52e50beccddf --- diff --git a/RELEASE-NOTES-1.24 b/RELEASE-NOTES-1.24 index bdbd6118e5..df25a1778a 100644 --- a/RELEASE-NOTES-1.24 +++ b/RELEASE-NOTES-1.24 @@ -35,6 +35,7 @@ production. * Users in the 'sysop' group have access to Special:MergeHistory by default. * $wgFileStore was removed after having been deprecated in 1.17. Alternative configurations are $wgDeletedDirectory and $wgHashedUploadDirectory. +* The deprecated $wgUseCommaCount variable has been removed. === New features in 1.24 === * Added a new hook, "WhatLinksHereProps", to allow extensions to annotate diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 96ef14fb43..951e6e637e 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -3979,9 +3979,6 @@ $wgTranscludeCacheExpiry = 3600; * - 'any': all pages as considered as valid articles * - 'comma': the page must contain a comma to be considered valid * - 'link': the page must contain a [[wiki link]] to be considered valid - * - null: the value will be set at run time depending on $wgUseCommaCount: - * if $wgUseCommaCount is false, it will be 'link', if it is true - * it will be 'comma' * * See also See https://www.mediawiki.org/wiki/Manual:Article_count * @@ -3989,13 +3986,7 @@ $wgTranscludeCacheExpiry = 3600; * to update it, you will need to run the maintenance/updateArticleCount.php * script. */ -$wgArticleCountMethod = null; - -/** - * Backward compatibility setting, will set $wgArticleCountMethod if it is null. - * @deprecated since 1.18; use $wgArticleCountMethod instead - */ -$wgUseCommaCount = false; +$wgArticleCountMethod = 'link'; /** * wgHitcounterUpdateFreq sets how often page counters should be updated, higher diff --git a/includes/Setup.php b/includes/Setup.php index 38a16c56d1..040aba585f 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -370,10 +370,6 @@ if ( !$wgHtml5Version && $wgAllowRdfaAttributes ) { // Blacklisted file extensions shouldn't appear on the "allowed" list $wgFileExtensions = array_values( array_diff ( $wgFileExtensions, $wgFileBlacklist ) ); -if ( $wgArticleCountMethod === null ) { - $wgArticleCountMethod = $wgUseCommaCount ? 'comma' : 'link'; -} - if ( $wgInvalidateCacheOnLocalSettingsChange ) { // @codingStandardsIgnoreStart Generic.PHP.NoSilencedErrors.Discouraged - No GlobalFunction here yet. $wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( "$IP/LocalSettings.php" ) ) );