X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2Fsqlite.php;h=bfd4d971cbcff53c569cd3b0ce482213a8941954;hp=fbde4175bc92010575fa2e35d52c03ade82b1e41;hb=e90012d5581801045910f31ddefa9aee52e39d39;hpb=3cc7f15766b65b9b3cba865760e590e948b5ba2a diff --git a/maintenance/sqlite.php b/maintenance/sqlite.php index fbde4175bc..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__ ); } @@ -142,5 +142,5 @@ class SqliteMaintenance extends Maintenance { } } -$maintClass = "SqliteMaintenance"; +$maintClass = SqliteMaintenance::class; require_once RUN_MAINTENANCE_IF_MAIN;