<?php
/**
- * A foreign repository with a remote MediaWiki with an API thingy
- * Very hacky and inefficient
- * do not use :D
+ * A foreign repository with an accessible MediaWiki database
* @ingroup FileRepo
*/
class ForeignDBRepo extends LocalRepo {
# Other stuff
var $dbConn;
var $fileFactory = array( 'ForeignDBFile', 'newFromTitle' );
-
- function newFileFromRow( $row ) {
- if ( isset( $row->img_name ) )
- return ForeignDBFile::newFromRow( $row, $this );
- return parent::newFileFromRow( $row );
- }
+ var $fileFromRowFactory = array( 'ForeignDBFile', 'newFromRow' );
function __construct( $info ) {
parent::__construct( $info );