From 38770513fa7eda1b3888ba0c2d2c582ef1e1081c Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sun, 9 Feb 2014 15:00:11 +0100 Subject: [PATCH] Exclude prop=uploadwarning from allimages and stashimageinfo Was added with I4a0af8986f924cd127a73828e72da6998f28536c, but looks only useful on prop=imageinfo Change-Id: I59c5f11f83be7e59f317686ab7fa16ad6fda008b --- includes/api/ApiQueryAllImages.php | 2 +- includes/api/ApiQueryStashImageInfo.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() { -- 2.20.1