diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2006-10-11 18:12:39 +0000 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2006-10-11 18:12:39 +0000 |
commit | 183851b06bd6c52f3cae5375f433da720d410447 (patch) | |
tree | a477257decbf3360127f6739c2f9d0ec57a03d39 /maintenance/showJobs.php |
MediaWiki 1.7.1 wiederhergestellt
Diffstat (limited to 'maintenance/showJobs.php')
-rw-r--r-- | maintenance/showJobs.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/maintenance/showJobs.php b/maintenance/showJobs.php new file mode 100644 index 00000000..98e47de2 --- /dev/null +++ b/maintenance/showJobs.php @@ -0,0 +1,19 @@ +<?php +/** + * Based on runJobs.php + * + * @author Tim Starling + * @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' ); +print $count."\n"; + +?> |