Index: trunk/phase3/includes/api/ApiQueryFilearchive.php |
— | — | @@ -138,15 +138,14 @@ |
139 | 139 | $file['userid'] = $row->fa_user; |
140 | 140 | $file['user'] = $row->fa_user_text; |
141 | 141 | } |
142 | | - if ( $fld_size ) { |
| 142 | + if ( $fld_size || $fld_dimensions ) { |
143 | 143 | $file['size'] = $row->fa_size; |
144 | 144 | |
145 | 145 | $pageCount = ArchivedFile::newFromRow( $row )->pageCount(); |
146 | 146 | if ( $pageCount !== false ) { |
147 | 147 | $vals['pagecount'] = $pageCount; |
148 | 148 | } |
149 | | - } |
150 | | - if ( $fld_dimensions ) { |
| 149 | + |
151 | 150 | $file['height'] = $row->fa_height; |
152 | 151 | $file['width'] = $row->fa_width; |
153 | 152 | } |
— | — | @@ -240,7 +239,7 @@ |
241 | 240 | ' timestamp - Adds timestamp for the uploaded version', |
242 | 241 | ' user - Adds user who uploaded the image version', |
243 | 242 | ' size - Adds the size of the image in bytes and the height, width and page count (if applicable)', |
244 | | - ' dimensions - Adds the height and width of the image', |
| 243 | + ' dimensions - Alias for size', |
245 | 244 | ' description - Adds description the image version', |
246 | 245 | ' mime - Adds MIME of the image', |
247 | 246 | ' metadata - Lists EXIF metadata for the version of the image', |