X-Git-Url: http://git.cyclocoop.org/%28?a=blobdiff_plain;f=maintenance%2Fsqlite.php;h=bfd4d971cbcff53c569cd3b0ce482213a8941954;hb=13dba84b6f006cbc1500c7c079d480df7ffe110e;hp=5070745f965ec2cb79d1ba87091f6e2ab51e02f9;hpb=07a791ffd1d80c6a8f2ca4dfdbc3f2002ac869fe;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/sqlite.php b/maintenance/sqlite.php index 5070745f96..bfd4d971cb 100644 --- a/maintenance/sqlite.php +++ b/maintenance/sqlite.php @@ -117,12 +117,12 @@ class SqliteMaintenance extends Maintenance { $this->db->query( 'BEGIN IMMEDIATE TRANSACTION', __METHOD__ ); $ourFile = $this->db->getDbFilePath(); $this->output( " Copying database file $ourFile to $fileName... " ); - MediaWiki\suppressWarnings( false ); + Wikimedia\suppressWarnings(); if ( !copy( $ourFile, $fileName ) ) { $err = error_get_last(); $this->error( " {$err['message']}" ); } - MediaWiki\suppressWarnings( true ); + Wikimedia\restoreWarnings(); $this->output( " Releasing lock...\n" ); $this->db->query( 'COMMIT TRANSACTION', __METHOD__ ); }