From: umherirrender Date: Sun, 9 Feb 2014 14:00:11 +0000 (+0100) Subject: Exclude prop=uploadwarning from allimages and stashimageinfo X-Git-Tag: 1.31.0-rc.0~16551 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=38770513fa7eda1b3888ba0c2d2c582ef1e1081c;p=lhc%2Fweb%2Fwiklou.git Exclude prop=uploadwarning from allimages and stashimageinfo Was added with I4a0af8986f924cd127a73828e72da6998f28536c, but looks only useful on prop=imageinfo Change-Id: I59c5f11f83be7e59f317686ab7fa16ad6fda008b --- diff --git a/includes/api/ApiQueryAllImages.php b/includes/api/ApiQueryAllImages.php index 0591fa9690..6e2c31f55d 100644 --- a/includes/api/ApiQueryAllImages.php +++ b/includes/api/ApiQueryAllImages.php @@ -378,7 +378,7 @@ class ApiQueryAllImages extends ApiQueryGeneratorBase { ); } - private $propertyFilter = array( 'archivename', 'thumbmime' ); + private $propertyFilter = array( 'archivename', 'thumbmime', 'uploadwarning' ); public function getResultProperties() { return array_merge( diff --git a/includes/api/ApiQueryStashImageInfo.php b/includes/api/ApiQueryStashImageInfo.php index 3595cf96c2..6a49e60642 100644 --- a/includes/api/ApiQueryStashImageInfo.php +++ b/includes/api/ApiQueryStashImageInfo.php @@ -72,7 +72,7 @@ class ApiQueryStashImageInfo extends ApiQueryImageInfo { private $propertyFilter = array( 'user', 'userid', 'comment', 'parsedcomment', - 'mediatype', 'archivename', + 'mediatype', 'archivename', 'uploadwarning', ); public function getAllowedParams() {