r46839 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46838‎ | r46839 | r46840 >
Date:08:13, 5 February 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
* Remove unneeded includes
Modified paths:
  • /trunk/phase3/maintenance/runJobs.php (modified) (history)
  • /trunk/phase3/maintenance/showJobs.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/runJobs.php
@@ -13,8 +13,6 @@
1414 $optionsWithArgs = array( 'maxjobs', 'type' );
1515 $wgUseNormalUser = true;
1616 require_once( 'commandLine.inc' );
17 -require_once( "$IP/includes/JobQueue.php" );
18 -require_once( "$IP/includes/FakeTitle.php" );
1917
2018 if ( isset( $options['maxjobs'] ) ) {
2119 $maxJobs = $options['maxjobs'];
Index: trunk/phase3/maintenance/showJobs.php
@@ -10,12 +10,7 @@
1111 * @author Ashar Voultoiz
1212 */
1313 require_once( 'commandLine.inc' );
14 -require_once( "$IP/includes/JobQueue.php" );
15 -require_once( "$IP/includes/FakeTitle.php" );
1614
17 -// Trigger errors on inappropriate use of $wgTitle
18 -$wgTitle = new FakeTitle;
19 -
2015 $dbw = wfGetDB( DB_MASTER );
2116 $count = $dbw->selectField( 'job', 'count(*)', '', 'runJobs.php' );
2217 print $count."\n";

Status & tagging log