X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FimportDump.php;h=f0e0555af1deca3e2103865e69014db65186ae77;hb=0964884ccec476071b20b4b81e6a996441822fbc;hp=3bf8b272ff07674af520dfbf163e8cfe62804fcf;hpb=415953d91e1acbddace8b761b218cf2f78d6a974;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/importDump.php b/maintenance/importDump.php index 3bf8b272ff..f0e0555af1 100644 --- a/maintenance/importDump.php +++ b/maintenance/importDump.php @@ -118,7 +118,7 @@ TEXT return; } - $this->nsFilter = array_unique( array_map( array( $this, 'getNsIndex' ), $namespaces ) ); + $this->nsFilter = array_unique( array_map( [ $this, 'getNsIndex' ], $namespaces ) ); } private function getNsIndex( $namespace ) { @@ -205,7 +205,7 @@ TEXT // call_user_func( $this->uploadCallback, $revision ); $dbw = $this->getDB( DB_MASTER ); - return $dbw->deadlockLoop( array( $revision, 'importUpload' ) ); + return $dbw->deadlockLoop( [ $revision, 'importUpload' ] ); } } @@ -297,13 +297,13 @@ TEXT return false; } } - $importer->setPageCallback( array( $this, 'reportPage' ) ); + $importer->setPageCallback( [ $this, 'reportPage' ] ); $this->importCallback = $importer->setRevisionCallback( - array( $this, 'handleRevision' ) ); + [ $this, 'handleRevision' ] ); $this->uploadCallback = $importer->setUploadCallback( - array( $this, 'handleUpload' ) ); + [ $this, 'handleUpload' ] ); $this->logItemCallback = $importer->setLogItemCallback( - array( $this, 'handleLogItem' ) ); + [ $this, 'handleLogItem' ] ); if ( $this->uploads ) { $importer->setImportUploads( true ); }