Index: trunk/phase3/includes/api/ApiQueryFilearchive.php |
— | — | @@ -73,10 +73,9 @@ |
74 | 74 | if ( $fld_user ) { |
75 | 75 | $this->addFields( array( 'fa_user', 'fa_user_text' ) ); |
76 | 76 | } |
77 | | - $this->addFieldsIf( 'fa_size', $fld_size ); |
78 | 77 | |
79 | | - if ( $fld_dimensions ) { |
80 | | - $this->addFields( array( 'fa_height', 'fa_width' ) ); |
| 78 | + if ( $fld_dimensions || $fld_size ) { |
| 79 | + $this->addFields( array( 'fa_height', 'fa_width', 'fa_size' ) ); |
81 | 80 | } |
82 | 81 | |
83 | 82 | $this->addFieldsIf( 'fa_description', $fld_description ); |