X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdb%2FCloneDatabase.php;h=64c33df65465566e0949b9d529b0ee755d78bf01;hb=6cfdbdf60e69cce31d2f28f0a0e7e478785fe886;hp=edb54aee89df4056a4b5cac42bd8daf1d886cb8e;hpb=6f680554ceb988f3895184167d5006d722a0afb3;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/db/CloneDatabase.php b/includes/db/CloneDatabase.php index edb54aee89..64c33df654 100644 --- a/includes/db/CloneDatabase.php +++ b/includes/db/CloneDatabase.php @@ -82,10 +82,10 @@ class CloneDatabase { # works correctly across DB engines, we need to change the pre- # fix back and forth so tableName() works right. - self::changePrefix( $this->oldTablePrefix ); + $this->db->tablePrefix( $this->oldTablePrefix ); $oldTableName = $this->db->tableName( $tbl, 'raw' ); - self::changePrefix( $this->newTablePrefix ); + $this->db->tablePrefix( $this->newTablePrefix ); $newTableName = $this->db->tableName( $tbl, 'raw' ); // Postgres: Temp tables are automatically deleted upon end of session @@ -116,12 +116,12 @@ class CloneDatabase { */ public function destroy( $dropTables = false ) { if ( $dropTables ) { - self::changePrefix( $this->newTablePrefix ); + $this->db->tablePrefix( $this->newTablePrefix ); foreach ( $this->tablesToClone as $tbl ) { $this->db->dropTable( $tbl ); } } - self::changePrefix( $this->oldTablePrefix ); + $this->db->tablePrefix( $this->oldTablePrefix ); } /**