[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Improve PARAM_HELP_MSG_PER_VALUE documentation

2018-01-11 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/403707 )

Change subject: Improve PARAM_HELP_MSG_PER_VALUE documentation
..


Improve PARAM_HELP_MSG_PER_VALUE documentation

Per-value documentation is only generated if this option is specified,
even if it is only set to an empty array (i. e., when using the default
key for all values). Attempt to make this more clear.

Change-Id: I844df226271aadb1f06b3cc00ba32cc6c06ec76a
---
M includes/api/ApiBase.php
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  jenkins-bot: Verified
  Anomie: Looks good to me, approved



diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php
index 83d2ae9..4d7ef28 100644
--- a/includes/api/ApiBase.php
+++ b/includes/api/ApiBase.php
@@ -155,6 +155,7 @@
 * ((string|array|Message)[]) When PARAM_TYPE is an array, this is an 
array
 * mapping those values to $msg for ApiBase::makeMessage(). Any value 
not
 * having a mapping will use 
apihelp-{$path}-paramvalue-{$param}-{$value}.
+* Specify an empty array to use the default message key for all values.
 * @since 1.25
 */
const PARAM_HELP_MSG_PER_VALUE = 14;

-- 
To view, visit https://gerrit.wikimedia.org/r/403707
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I844df226271aadb1f06b3cc00ba32cc6c06ec76a
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Lucas Werkmeister (WMDE) 
Gerrit-Reviewer: Anomie 
Gerrit-Reviewer: Lucas Werkmeister (WMDE) 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Improve PARAM_HELP_MSG_PER_VALUE documentation

2018-01-11 Thread Lucas Werkmeister (WMDE) (Code Review)
Lucas Werkmeister (WMDE) has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/403707 )

Change subject: Improve PARAM_HELP_MSG_PER_VALUE documentation
..

Improve PARAM_HELP_MSG_PER_VALUE documentation

Per-value documentation is only generated if this option is specified,
even if it is only set to an empty array (i. e., when using the default
key for all values). Attempt to make this more clear.

Change-Id: I844df226271aadb1f06b3cc00ba32cc6c06ec76a
---
M includes/api/ApiBase.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/07/403707/1

diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php
index 83d2ae9..6ff4eed 100644
--- a/includes/api/ApiBase.php
+++ b/includes/api/ApiBase.php
@@ -155,6 +155,7 @@
 * ((string|array|Message)[]) When PARAM_TYPE is an array, this is an 
array
 * mapping those values to $msg for ApiBase::makeMessage(). Any value 
not
 * having a mapping will use 
apihelp-{$path}-paramvalue-{$param}-{$value}.
+* (Specify an empty array to use that default message key for all 
values.)
 * @since 1.25
 */
const PARAM_HELP_MSG_PER_VALUE = 14;

-- 
To view, visit https://gerrit.wikimedia.org/r/403707
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I844df226271aadb1f06b3cc00ba32cc6c06ec76a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Lucas Werkmeister (WMDE) 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits