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