X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiFeedWatchlist.php;h=c841d830a9496dc1eaa62e5a90a679115164aaec;hb=9499586028e427a66cab01e550149b98e6e780a6;hp=0ddb3c3870a54cbcdacfc7f7245658440ef43aff;hpb=59ebff658ce912c1b0e7ef8d8f9bfec5a4e17b39;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiFeedWatchlist.php b/includes/api/ApiFeedWatchlist.php index 0ddb3c3870..c841d830a9 100644 --- a/includes/api/ApiFeedWatchlist.php +++ b/includes/api/ApiFeedWatchlist.php @@ -181,7 +181,7 @@ class ApiFeedWatchlist extends ApiBase { // Probably a formerly-valid title that's now conflicting with an // interwiki prefix or the like. if ( isset( $info['pageid'] ) ) { - $title = Title::newFromId( $info['pageid'] ); + $title = Title::newFromID( $info['pageid'] ); $curidParam = array( 'curid' => $info['pageid'] ); } if ( !$title || $title->isExternal() ) { @@ -265,6 +265,15 @@ class ApiFeedWatchlist extends ApiBase { if ( !isset( $p[ApiBase::PARAM_HELP_MSG] ) ) { $p[ApiBase::PARAM_HELP_MSG] = "apihelp-query+watchlist-param-$from"; } + if ( isset( $p[ApiBase::PARAM_TYPE] ) && 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 {