X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryFileRepoInfo.php;h=279bc0a2f3eb2cd2277ffa37fea896f2ac302097;hb=e1c6ea78b8c31418493186e08059fc685b5ec6f3;hp=c4912366c47b334caf0badf07c6f942e18946de5;hpb=e5facc46bc170c302438f60849041b0d6be75e82;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryFileRepoInfo.php b/includes/api/ApiQueryFileRepoInfo.php index c4912366c4..279bc0a2f3 100644 --- a/includes/api/ApiQueryFileRepoInfo.php +++ b/includes/api/ApiQueryFileRepoInfo.php @@ -81,6 +81,7 @@ class ApiQueryFileRepoInfo extends ApiQueryBase { ApiBase::PARAM_DFLT => implode( '|', $props ), ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_TYPE => $props, + ApiBase::PARAM_HELP_MSG_PER_VALUE => [], ], ]; } @@ -100,17 +101,23 @@ class ApiQueryFileRepoInfo extends ApiQueryBase { $propValues[] = 'canUpload'; + sort( $propValues ); return $propValues; } protected function getExamplesMessages() { - return [ - 'action=query&meta=filerepoinfo&friprop=apiurl|name|displayname' - => 'apihelp-query+filerepoinfo-example-simple', - ]; + $examples = []; + + $props = array_intersect( [ 'apiurl', 'name', 'displayname' ], $this->getProps() ); + if ( $props ) { + $examples['action=query&meta=filerepoinfo&friprop=' . implode( '|', $props )] = + 'apihelp-query+filerepoinfo-example-simple'; + } + + return $examples; } public function getHelpUrls() { - return 'https://www.mediawiki.org/wiki/API:Filerepoinfo'; + return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:Filerepoinfo'; } }