Exclude prop=uploadwarning from allimages and stashimageinfo
authorumherirrender <umherirrender_de.wp@web.de>
Sun, 9 Feb 2014 14:00:11 +0000 (15:00 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Fri, 21 Mar 2014 06:14:50 +0000 (06:14 +0000)
Was added with I4a0af8986f924cd127a73828e72da6998f28536c,
but looks only useful on prop=imageinfo

Change-Id: I59c5f11f83be7e59f317686ab7fa16ad6fda008b

includes/api/ApiQueryAllImages.php
includes/api/ApiQueryStashImageInfo.php

index 0591fa9..6e2c31f 100644 (file)
@@ -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(
index 3595cf9..6a49e60 100644 (file)
@@ -72,7 +72,7 @@ class ApiQueryStashImageInfo extends ApiQueryImageInfo {
 
        private $propertyFilter = array(
                'user', 'userid', 'comment', 'parsedcomment',
-               'mediatype', 'archivename',
+               'mediatype', 'archivename', 'uploadwarning',
        );
 
        public function getAllowedParams() {