X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdb%2FCloneDatabase.php;h=edb54aee89df4056a4b5cac42bd8daf1d886cb8e;hb=526341516a91502ac7cfd2e5590e7432b3f50c5d;hp=3d22c037ae1c6d32ea9a0abdbbc96e159a097e3a;hpb=85ac1b5d7c7ca50a93f2d16639cdde2f46bc133e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/db/CloneDatabase.php b/includes/db/CloneDatabase.php index 3d22c037ae..edb54aee89 100644 --- a/includes/db/CloneDatabase.php +++ b/includes/db/CloneDatabase.php @@ -2,9 +2,6 @@ /** * Helper class for making a copy of the database, mostly for unit testing. * - * Copyright © 2010 Chad Horohoe - * https://www.mediawiki.org/ - * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or @@ -53,12 +50,12 @@ class CloneDatabase { * @param bool $dropCurrentTables */ public function __construct( IMaintainableDatabase $db, array $tablesToClone, - $newTablePrefix, $oldTablePrefix = '', $dropCurrentTables = true + $newTablePrefix, $oldTablePrefix = null, $dropCurrentTables = true ) { $this->db = $db; $this->tablesToClone = $tablesToClone; $this->newTablePrefix = $newTablePrefix; - $this->oldTablePrefix = $oldTablePrefix ? $oldTablePrefix : $this->db->tablePrefix(); + $this->oldTablePrefix = $oldTablePrefix !== null ? $oldTablePrefix : $this->db->tablePrefix(); $this->dropCurrentTables = $dropCurrentTables; }