From 67f078509ddc6792bf3dd3570f679d53433cdd3c Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Mon, 16 Nov 2015 10:26:39 -0500 Subject: [PATCH] ApiFeedWatchlist: Set messages for param-per-value too when copying from ApiQueryWatchlist Bug: T118675 Change-Id: I9244a177716d4bbe8c011fd7c374e125552ea531 --- includes/api/ApiFeedWatchlist.php | 7 +++++++ 1 file changed, 7 insertions(+) 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 { -- 2.20.1