From 3fdf040febc4b60a9d03396f123ef57d51fc17be Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Tue, 6 Jun 2006 11:48:05 +0000 Subject: [PATCH] AutoLoad JobQueue --- includes/LinksUpdate.php | 2 -- includes/Wiki.php | 2 -- 2 files changed, 4 deletions(-) diff --git a/includes/LinksUpdate.php b/includes/LinksUpdate.php index bd09502e79..54728582dd 100644 --- a/includes/LinksUpdate.php +++ b/includes/LinksUpdate.php @@ -119,7 +119,6 @@ class LinksUpdate { if ( $this->mRecursive ) { $tlto = $this->mTitle->getTemplateLinksTo(); if ( count( $tlto ) ) { - require_once( 'JobQueue.php' ); Job::queueLinksJobs( $tlto ); } } @@ -155,7 +154,6 @@ class LinksUpdate { if ( $this->mRecursive ) { $tlto = $this->mTitle->getTemplateLinksTo(); if ( count( $tlto ) ) { - require_once( 'JobQueue.php' ); Job::queueLinksJobs( $tlto ); } } diff --git a/includes/Wiki.php b/includes/Wiki.php index e81e8bc46d..8014e3e55c 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -282,8 +282,6 @@ class MediaWiki { $n = intval( $wgJobRunRate ); } - require_once( 'JobQueue.php' ); - while ( $n-- && false != ($job = Job::pop())) { $output = $job->toString() . "\n"; if ( !$job->run() ) { -- 2.20.1