img_name ) ) { return LocalFile::newFromRow( $row, $this ); } elseif ( isset( $row->oi_name ) ) { return OldLocalFile::newFromRow( $row, $this ); } else { throw new MWException( __METHOD__.': invalid row' ); } } function newFromArchiveName( $title, $archiveName ) { return OldLocalFile::newFromArchiveName( $title, $this, $archiveName ); } }