Index: trunk/phase3/includes/api/ApiQueryFilearchive.php |
— | — | @@ -140,6 +140,11 @@ |
141 | 141 | } |
142 | 142 | if ( $fld_size ) { |
143 | 143 | $file['size'] = $row->fa_size; |
| 144 | + |
| 145 | + $pageCount = ArchivedFile::newFromRow( $row )->pageCount(); |
| 146 | + if ( $pageCount !== false ) { |
| 147 | + $vals['pagecount'] = $pageCount; |
| 148 | + } |
144 | 149 | } |
145 | 150 | if ( $fld_dimensions ) { |
146 | 151 | $file['height'] = $row->fa_height; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -115,7 +115,7 @@ |
116 | 116 | * (bug 2581, bug 6834) Added links to thumbnail in several resolutions to the |
117 | 117 | file description page. The sizes are set by $wgImageLimits. |
118 | 118 | * (bug 28031) Add pageCount support to ArchivedFile |
119 | | - |
| 119 | + |
120 | 120 | === Bug fixes in 1.18 === |
121 | 121 | * (bug 23119) WikiError class and subclasses are now marked as deprecated |
122 | 122 | * (bug 10871) Javascript and CSS pages in MediaWiki namespace are no longer |
— | — | @@ -257,6 +257,7 @@ |
258 | 258 | * (bug 27020) API: Allow title prefix search of logevents (only when not in |
259 | 259 | miser mode) |
260 | 260 | * (bug 26629) add Special:MIMESearch to api |
| 261 | +* (bug 27585) add pagecount to list=filearchive |
261 | 262 | |
262 | 263 | === Languages updated in 1.18 === |
263 | 264 | |