From: Brad Jorsch Date: Mon, 16 Nov 2015 15:26:39 +0000 (-0500) Subject: ApiFeedWatchlist: Set messages for param-per-value too when copying from ApiQueryWatc... X-Git-Tag: 1.31.0-rc.0~8986 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=67f078509ddc6792bf3dd3570f679d53433cdd3c;p=lhc%2Fweb%2Fwiklou.git ApiFeedWatchlist: Set messages for param-per-value too when copying from ApiQueryWatchlist Bug: T118675 Change-Id: I9244a177716d4bbe8c011fd7c374e125552ea531 --- diff --git a/includes/api/ApiFeedWatchlist.php b/includes/api/ApiFeedWatchlist.php index e8afcb67ce..77a3a21a94 100644 --- a/includes/api/ApiFeedWatchlist.php +++ b/includes/api/ApiFeedWatchlist.php @@ -265,6 +265,13 @@ class ApiFeedWatchlist extends ApiBase { if ( !isset( $p[ApiBase::PARAM_HELP_MSG] ) ) { $p[ApiBase::PARAM_HELP_MSG] = "apihelp-query+watchlist-param-$from"; } + if ( is_array( $p[ApiBase::PARAM_TYPE] ) && isset( $p[ApiBase::PARAM_HELP_MSG_PER_VALUE] ) ) { + foreach ( $p[ApiBase::PARAM_TYPE] as $v ) { + if ( !isset( $p[ApiBase::PARAM_HELP_MSG_PER_VALUE][$v] ) ) { + $p[ApiBase::PARAM_HELP_MSG_PER_VALUE][$v] = "apihelp-query+watchlist-paramvalue-$from-$v"; + } + } + } $ret[$to] = $p; } } else {