X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=blobdiff_plain;f=maintenance%2Fbackup.inc;h=befafc1d7344ab9af77253a1d90d8bb5b1d1ba06;hb=434ff86050115d4e1e3d61a23754815ebd7aeac6;hp=38daf646fd7435fd944ffb92ab63c0fb4247148a;hpb=950cf6016c10953213e5f985dfc18a32d8673197;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/backup.inc b/maintenance/backup.inc index 38daf646fd..befafc1d73 100644 --- a/maintenance/backup.inc +++ b/maintenance/backup.inc @@ -60,7 +60,7 @@ class BackupDumper extends Maintenance { /** * The dependency-injected database to use. * - * @var DatabaseBase|null + * @var IDatabase|null * * @see self::setDB */ @@ -163,7 +163,7 @@ class BackupDumper extends Maintenance { $val = explode( ':', $param ); if ( count( $val ) === 1 ) { - $this->loadPlugin( $val[0] ); + $this->loadPlugin( $val[0], '' ); } elseif ( count( $val ) === 2 ) { $this->loadPlugin( $val[0], $val[1] ); } else { @@ -314,7 +314,7 @@ class BackupDumper extends Maintenance { * @todo Fixme: the --server parameter is currently not respected, as it * doesn't seem terribly easy to ask the load balancer for a particular * connection by name. - * @return DatabaseBase + * @return IDatabase */ function backupDb() { if ( $this->forcedDb !== null ) { @@ -335,7 +335,7 @@ class BackupDumper extends Maintenance { * Force the dump to use the provided database connection for database * operations, wherever possible. * - * @param DatabaseBase|null $db (Optional) the database connection to use. If null, resort to + * @param IDatabase|null $db (Optional) the database connection to use. If null, resort to * use the globally provided ways to get database connections. */ function setDB( IDatabase $db = null ) {