From 93725c1b065b357db4c115ea5de6da93f9df553e Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 28 Feb 2006 05:20:31 +0000 Subject: [PATCH] Die on inappropriate references to $wgTitle, especially from parser extensions. --- maintenance/runJobs.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/maintenance/runJobs.php b/maintenance/runJobs.php index b98d765dc6..799b9fac3a 100644 --- a/maintenance/runJobs.php +++ b/maintenance/runJobs.php @@ -2,6 +2,10 @@ 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; while ( false != ($job = Job::pop()) ) { wfWaitForSlaves( 5 ); -- 2.20.1