r47440 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47439‎ | r47440 | r47441 >
Date:10:07, 18 February 2009
Author:ialex
Status:deferred
Tags:
Comment:
Added $wgAPIMaxResultSize, $wgShowDebug, $wgPreprocessorCacheThreshold and $wgExportMaxLinkDepth
Modified paths:
  • /trunk/extensions/Configure/CHANGELOG (modified) (history)
  • /trunk/extensions/Configure/Configure.php (modified) (history)
  • /trunk/extensions/Configure/Configure.settings-core.php (modified) (history)
  • /trunk/extensions/Configure/Configure.settings.i18n.php (modified) (history)
  • /trunk/extensions/Configure/default-setting-names.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Configure/Configure.settings.i18n.php
@@ -72,6 +72,7 @@
7373 'configure-setting-wgParserConf' => "Parser configuration",
7474 'configure-setting-wgParserCacheExpireTime' => "Expiration time of parser cache",
7575 'configure-setting-wgParserTestFiles' => "Files to be run for parserTests.php",
 76+ 'configure-setting-wgPreprocessorCacheThreshold' => "Preprocessor caching threshold",
7677 'configure-setting-wgRestrictDisplayTitle' => "Require use of <nowiki>{{DISPLAYTITLE}}</nowiki> to normalise to the same canonical page title",
7778 'configure-setting-wgAmericanDates' => "Require 'May 12' instead of '12 May' in English",
7879 'configure-setting-wgDisableLangConversion' => "Disable language conversion",
@@ -136,6 +137,7 @@
137138 'configure-setting-wgExportAllowHistory' => "Allow exports to include full history",
138139 'configure-setting-wgExportAllowListContributors' => "Allow a list of contributors to be exported",
139140 'configure-setting-wgExportMaxHistory' => "Maximum number of revisions for Special:Export",
 141+ 'configure-setting-wgExportMaxLinkDepth' => "Maximum value of the \"pagelink-depth\" parameter in Special:Export",
140142 'configure-setting-wgFilterLogTypes' => "Allowed log deletion types",
141143 'configure-setting-wgImportTargetNamespace' => "Target namespace for interwiki imports",
142144 'configure-setting-wgLogActions' => "Log event formatting messages",
@@ -194,12 +196,14 @@
195197 'configure-setting-wgDebugRedirects' => "Displays redirect location instead of actually redirecting to the target URL",
196198 'configure-setting-wgLogQueries' => 'Log queries made with extension AskSQL (if installed)',
197199 'configure-setting-wgShowExceptionDetails' => "Print a complete stack trace for exceptions",
 200+ 'configure-setting-wgShowDebug' => "Display debug data at the bottom of the main content area",
198201 'configure-setting-wgShowSQLErrors' => "Show database error pages",
199202 'configure-setting-wgStatsMethod' => "Destination for wfIncrStats() data",
200203 'configure-setting-wgJobRunRate' => "Number of jobs to run per page view",
201204 'configure-setting-wgJobClasses' => "Job handler classes",
202205 'configure-setting-wgUpdateRowsPerJob' => "Number of rows to update per job",
203206 'configure-setting-wgAPIMaxDBRows' => "Maximum number of rows to scan in API database queries",
 207+ 'configure-setting-wgAPIMaxResultSize' => "Maximum size (in bytes) of an API result",
204208 'configure-setting-wgDisableQueryPages' => "Disable all query pages if miser mode is on, not just some",
205209 'configure-setting-wgDisableQueryPageUpdate' => "Disabled special pages",
206210 'configure-setting-wgDisableSearchContext' => "Disable extra information on specific dates and page revisions in search results",
Index: trunk/extensions/Configure/CHANGELOG
@@ -1,6 +1,10 @@
22 This file lists changes on this extension.
33 Localisation updates are done on betawiki and aren't listed here.
44
 5+0.12.3 - 18 February 2009
 6+ Added $wgAPIMaxResultSize, $wgShowDebug, $wgPreprocessorCacheThreshold and
 7+ $wgExportMaxLinkDepth.
 8+
59 0.12.2 - 9 February 2009
610 (bug 17403) Boolean settings set to false when the default value is true are
711 now properly recognised.
Index: trunk/extensions/Configure/Configure.php
@@ -17,7 +17,7 @@
1818 'url' => 'http://www.mediawiki.org/wiki/Extension:Configure',
1919 'description' => 'Allow authorised users to configure the wiki via a web-based interface',
2020 'descriptionmsg' => 'configure-desc',
21 - 'version' => '0.12.2',
 21+ 'version' => '0.12.3',
2222 );
2323
2424 # Configuration part
Index: trunk/extensions/Configure/default-setting-names.php
@@ -124,6 +124,7 @@
125125 'wgLogQueries' => "enable logging of nquiries; requires Extension AskSql",
126126 'wgShowSQLErrors' => "Whether to show \"We're sorry, but there has been a database error.\" pages",
127127 'wgShowExceptionDetails' => "If set to true, uncaught exceptions will print a complete stack trace to output",
 128+ 'wgShowDebug' => 'Display debug data at the bottom of the main content area.',
128129 'wgStatsMethod' => "Destination for wfIncrStats() data",
129130 'wgDebugFunctionEntry' => "Output debug message on every wfProfileIn/wfProfileOut",
130131 'wgDebugProfiling' => "Detects non-matching wfProfileIn/wfProfileOut calls",
@@ -305,6 +306,7 @@
306307 'wgHttpOnlyBlacklist' => "User agent blacklist for HttpOnly mode",
307308 'wgSessionName' => "Override to customise the session name",
308309 'wgAPIMaxDBRows' => "Maximum amount of rows to scan in a DB query in the API",
 310+ 'wgAPIMaxResultSize' => 'The maximum size (in bytes) of an API result.',
309311 'wgDisableQueryPages' => "Disable all query pages if [[#\$wgMiserMode|miser mode]] is on, not just some",
310312 'wgDisableQueryPageUpdate' => "Array of special pages that should not be updated",
311313 'wgDisableSearchContext' => "Setting this 'false' enables display of additional information on specific date/page revisions in search results. Requires Extension:LuceneSearch",
@@ -409,6 +411,7 @@
410412 'wgMaxTocLevel' => "Maximum indent level of toc",
411413 'wgParserConf' => "Parser configuration",
412414 'wgParserTestFiles' => "Parser test suite files to be run by parserTests.php",
 415+ 'wgPreprocessorCacheThreshold' => 'Preprocessor caching threshold',
413416 'wgRestrictDisplayTitle' => "Restrict DISPLAYTITLE to titles that normalize to the same canonical DB key",
414417 'wgUseXMLparser' => "Use XML parser?",
415418 'wgMakeDumpLinks' => "Produce hashed [[w:HTML|HTML]] article paths",
@@ -428,6 +431,7 @@
429432 'wgAllowSpecialInclusion' => "Allow special page inclusions such as <code><nowiki>{{Special:Allpages}}</nowiki></code>",
430433 'wgExportAllowHistory' => "Enable the full-history option on Special:Export",
431434 'wgExportMaxHistory' => "Special:Export requests for history of pages with more revisions than this will be rejected",
 435+ 'wgExportMaxLinkDepth' => 'Maximum value of the "pagelink-depth" parameter in Special:Export.',
432436 'wgFilterLogTypes' => "Show/hide links on Special:Log will be shown for these log types",
433437 'wgFilterRobotsWL' => "Enable filtering of robots in Special:Watchlist",
434438 'wgImportTargetNamespace' => "Optional default target namespace for interwiki imports",
Index: trunk/extensions/Configure/Configure.settings-core.php
@@ -57,6 +57,7 @@
5858 ),
5959 'performance' => array(
6060 'wgAPIMaxDBRows' => 'int',
 61+ 'wgAPIMaxResultSize' => 'int',
6162 'wgDisableQueryPages' => 'bool',
6263 'wgDisableQueryPageUpdate' => 'array',
6364 'wgDisableSearchContext' => 'bool',
@@ -275,6 +276,7 @@
276277 'wgDebugLogPrefix' => 'text',
277278 'wgDebugRedirects' => 'bool',
278279 'wgLogQueries' => 'bool',
 280+ 'wgShowDebug' => 'bool',
279281 'wgShowExceptionDetails' => 'bool',
280282 'wgShowSQLErrors' => 'bool',
281283 'wgStatsMethod' => array( 'cache' => 'Cache', 'udp' => 'UDP', 0 => 'None' ),
@@ -517,6 +519,7 @@
518520 'wgParserConf' => 'array',
519521 'wgParserCacheExpireTime' => 'int',
520522 'wgParserTestFiles' => 'array',
 523+ 'wgPreprocessorCacheThreshold' => 'int',
521524 'wgUrlProtocols' => 'array',
522525 ),
523526 'html' => array(
@@ -539,6 +542,7 @@
540543 'wgExportAllowHistory' => 'bool',
541544 'wgExportAllowListContributors' => 'bool',
542545 'wgExportMaxHistory' => 'int',
 546+ 'wgExportMaxLinkDepth' => 'int',
543547 'wgExtraRandompageSQL' => 'text',
544548 'wgFilterLogTypes' => 'array',
545549 'wgImportTargetNamespace' => 'text',
@@ -1089,4 +1093,8 @@
10901094 'wgInvalidRedirectTargets' => array( array( '1.15alpha', '>=' ) ),
10911095 'wgNoFollowDomainExceptions' => array( array( '1.15alpha', '>=' ) ),
10921096 'wgUseTwoButtonsSearchForm' => array( array( '1.15alpha', '>=' ) ),
 1097+ 'wgAPIMaxResultSize' => array( array( '1.15alpha', '>=' ) ),
 1098+ 'wgShowDebug' => array( array( '1.15alpha', '>=' ) ),
 1099+ 'wgPreprocessorCacheThreshold' => array( array( '1.15alpha', '>=' ) ),
 1100+ 'wgExportMaxLinkDepth' => array( array( '1.15alpha', '>=' ) ),
10931101 );

Status & tagging log