$optionsWithArgs = array( 'maxjobs', 'type' );
$wgUseNormalUser = true;
require_once( 'commandLine.inc' );
-require_once( "$IP/includes/JobQueue.php" );
-require_once( "$IP/includes/FakeTitle.php" );
if ( isset( $options['maxjobs'] ) ) {
$maxJobs = $options['maxjobs'];
* @author Ashar Voultoiz
*/
require_once( 'commandLine.inc' );
-require_once( "$IP/includes/JobQueue.php" );
-require_once( "$IP/includes/FakeTitle.php" );
-
-// Trigger errors on inappropriate use of $wgTitle
-$wgTitle = new FakeTitle;
$dbw = wfGetDB( DB_MASTER );
$count = $dbw->selectField( 'job', 'count(*)', '', 'runJobs.php' );