X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FfixDoubleRedirects.php;h=523be7efe747a1351d74b85854f27bb8f1e3719d;hb=d966178eadf6f5e30f4049c844fdb6afe827501f;hp=d808500d3d42953b114c02bf55ee1cd9c73271dd;hpb=0b7df10078b39db4dd4290216387886d64235d8f;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/fixDoubleRedirects.php b/maintenance/fixDoubleRedirects.php index d808500d3d..523be7efe7 100644 --- a/maintenance/fixDoubleRedirects.php +++ b/maintenance/fixDoubleRedirects.php @@ -25,7 +25,7 @@ * @ingroup Maintenance */ -require_once( __DIR__ . '/Maintenance.php' ); +require_once __DIR__ . '/Maintenance.php'; /** * Maintenance script that fixes double redirects. @@ -129,9 +129,9 @@ class FixDoubleRedirects extends Maintenance { protected function queueJobs( $jobs, $dryrun = false ) { $this->output( "Queuing batch of " . count( $jobs ) . " double redirects.\n" ); - Job::batchInsert( $dryrun ? array() : $jobs ); + JobQueueGroup::singleton()->push( $dryrun ? array() : $jobs ); } } $maintClass = "FixDoubleRedirects"; -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN;