X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Ffilerepo%2Ffile%2FOldLocalFile.php;h=d08d0aefadddcefbba9719c9aa29c6c63149c50d;hb=6f7e982df6479e27c3b17f2deda8404ef55f50e6;hp=69e6896f0efaa8ebf5cd86b9fe3ee929899aa606;hpb=c2f432625fdf1fe84f2be1aca782f4b3ec175804;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filerepo/file/OldLocalFile.php b/includes/filerepo/file/OldLocalFile.php index 69e6896f0e..d08d0aefad 100644 --- a/includes/filerepo/file/OldLocalFile.php +++ b/includes/filerepo/file/OldLocalFile.php @@ -127,7 +127,7 @@ class OldLocalFile extends LocalFile { 'oi_timestamp', 'oi_deleted', 'oi_sha1', - ] + CommentStore::newKey( 'oi_description' )->getFields(); + ] + CommentStore::getStore()->getFields( 'oi_description' ); } /** @@ -142,7 +142,7 @@ class OldLocalFile extends LocalFile { * - joins: (array) to include in the `$join_conds` to `IDatabase->select()` */ public static function getQueryInfo( array $options = [] ) { - $commentQuery = CommentStore::newKey( 'oi_description' )->getJoin(); + $commentQuery = CommentStore::getStore()->getJoin( 'oi_description' ); $ret = [ 'tables' => [ 'oldimage' ] + $commentQuery['tables'], 'fields' => [ @@ -434,7 +434,7 @@ class OldLocalFile extends LocalFile { return false; } - $commentFields = CommentStore::newKey( 'oi_description' )->insert( $dbw, $comment ); + $commentFields = CommentStore::getStore()->insert( $dbw, 'oi_description', $comment ); $dbw->insert( 'oldimage', [ 'oi_name' => $this->getName(),