AutoLoad JobQueue
authorDomas Mituzas <midom@users.mediawiki.org>
Tue, 6 Jun 2006 11:48:05 +0000 (11:48 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Tue, 6 Jun 2006 11:48:05 +0000 (11:48 +0000)
includes/LinksUpdate.php
includes/Wiki.php

index bd09502..5472858 100644 (file)
@@ -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 );
                        }
                }
index e81e8bc..8014e3e 100644 (file)
@@ -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() ) {