Fix pagecount output
authorrobinhood701 <robinhood70@live.ca>
Tue, 21 Oct 2014 01:38:44 +0000 (21:38 -0400)
committerrobinhood701 <robinhood70@live.ca>
Tue, 21 Oct 2014 01:38:44 +0000 (21:38 -0400)
Change-Id: I9ff3b986a2e1fdedb2ec5e281dbcaf6e35d3c2d0

includes/api/ApiQueryFilearchive.php

index b4638d9..415cb3d 100644 (file)
@@ -193,7 +193,7 @@ class ApiQueryFilearchive extends ApiQueryBase {
 
                                $pageCount = ArchivedFile::newFromRow( $row )->pageCount();
                                if ( $pageCount !== false ) {
-                                       $vals['pagecount'] = $pageCount;
+                                       $file['pagecount'] = $pageCount;
                                }
 
                                $file['height'] = $row->fa_height;