Index: trunk/phase3/includes/api/ApiQueryRevisions.php |
— | — | @@ -404,8 +404,12 @@ |
405 | 405 | $vals['timestamp'] = wfTimestamp( TS_ISO_8601, $revision->getTimestamp() ); |
406 | 406 | } |
407 | 407 | |
408 | | - if ( $this->fld_size && !is_null( $revision->getSize() ) ) { |
409 | | - $vals['size'] = intval( $revision->getSize() ); |
| 408 | + if ( $this->fld_size ) { |
| 409 | + if ( !is_null( $revision->getSize() ) ) { |
| 410 | + $vals['size'] = intval( $revision->getSize() ); |
| 411 | + } else { |
| 412 | + $vals['size'] = 0; |
| 413 | + } |
410 | 414 | } |
411 | 415 | |
412 | 416 | if ( $this->fld_comment || $this->fld_parsedcomment ) { |
Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -203,6 +203,7 @@ |
204 | 204 | * Added 'APIGetDescription' hook. |
205 | 205 | * (bug 32688) Paraminfo for parameter "generator" of the query module shows too |
206 | 206 | many types |
| 207 | +* (bug 32415) Empty page get no size attribute in API output |
207 | 208 | |
208 | 209 | === Languages updated in 1.19 === |
209 | 210 | |