From: Bryan Tong Minh Date: Fri, 30 May 2008 18:19:02 +0000 (+0000) Subject: Forgot to remove the newFileFrom row thingies from ForeignDBRepo X-Git-Tag: 1.31.0-rc.0~47282 X-Git-Url: https://git.cyclocoop.org/admin/%7B%24admin_url%7Dmembres/%7B%7B%20url_for%28%27new_vote%27%29%20%7D%7D?a=commitdiff_plain;h=8adc41248d3c2041c3f1f3fb298afb8cbc756cb1;p=lhc%2Fweb%2Fwiklou.git Forgot to remove the newFileFrom row thingies from ForeignDBRepo --- diff --git a/includes/filerepo/ForeignDBRepo.php b/includes/filerepo/ForeignDBRepo.php index 294997f895..e078dd25bc 100644 --- a/includes/filerepo/ForeignDBRepo.php +++ b/includes/filerepo/ForeignDBRepo.php @@ -14,12 +14,6 @@ class ForeignDBRepo extends LocalRepo { var $fileFactory = array( 'ForeignDBFile', 'newFromTitle' ); var $fileFromRowFactory = array( 'ForeignDBFile', 'newFromRow' ); - function newFileFromRow( $row ) { - if ( isset( $row->img_name ) ) - return ForeignDBFile::newFromRow( $row, $this ); - return parent::newFileFromRow( $row ); - } - function __construct( $info ) { parent::__construct( $info ); $this->dbType = $info['dbType']; diff --git a/includes/filerepo/ForeignDBViaLBRepo.php b/includes/filerepo/ForeignDBViaLBRepo.php index 7648c23468..13c9f434f2 100644 --- a/includes/filerepo/ForeignDBViaLBRepo.php +++ b/includes/filerepo/ForeignDBViaLBRepo.php @@ -9,12 +9,6 @@ class ForeignDBViaLBRepo extends LocalRepo { var $fileFactory = array( 'ForeignDBFile', 'newFromTitle' ); var $fileFromRowFactory = array( 'ForeignDBFile', 'newFromRow' ); - function newFileFromRow( $row ) { - if ( isset( $row->img_name ) ) - return ForeignDBFile::newFromRow( $row, $this ); - return parent::newFileFromRow( $row ); - } - function __construct( $info ) { parent::__construct( $info ); $this->wiki = $info['wiki'];