Index: trunk/phase3/includes/filerepo/LocalFile.php |
— | — | @@ -661,7 +661,11 @@ |
662 | 662 | $res = $dbr->select( $tables, $fields, $conds, __METHOD__, $opts, $join_conds ); |
663 | 663 | $r = array(); |
664 | 664 | while( $row = $dbr->fetchObject( $res ) ) { |
665 | | - $r[] = OldLocalFile::newFromRow( $row, $this->repo ); |
| 665 | + if ( $this->repo->oldFileFromRowFactory ) { |
| 666 | + $r[] = call_user_func( $this->repo->oldFileFromRowFactory, $row, $this->repo ); |
| 667 | + } else { |
| 668 | + $r[] = OldLocalFile::newFromRow( $row, $this->repo ); |
| 669 | + } |
666 | 670 | } |
667 | 671 | if( $order == 'ASC' ) { |
668 | 672 | $r = array_reverse( $r ); // make sure it ends up descending |