* Fix some command-line propagation issues
[lhc/web/wiklou.git] / maintenance / showJobs.php
1 <?php
2 /**
3 * Based on runJobs.php
4 *
5 * Report number of jobs currently waiting in master database.
6 *
7 * @file
8 * @ingroup Maintenance
9 * @author Tim Starling
10 * @author Ashar Voultoiz
11 */
12 require_once( 'commandLine.inc' );
13 require_once( "$IP/includes/JobQueue.php" );
14 require_once( "$IP/includes/FakeTitle.php" );
15
16 // Trigger errors on inappropriate use of $wgTitle
17 $wgTitle = new FakeTitle;
18
19 $dbw = wfGetDB( DB_MASTER );
20 $count = $dbw->selectField( 'job', 'count(*)', '', 'runJobs.php' );
21 print $count."\n";
22
23