* Fix WebRequest.php
[lhc/web/wiklou.git] / includes / filerepo / ForeignDBRepo.php
index 56edaf2..e078dd2 100644 (file)
@@ -1,9 +1,7 @@
 <?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 {
@@ -14,12 +12,7 @@ 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 );