From: Tim Starling Date: Tue, 28 Feb 2006 05:20:31 +0000 (+0000) Subject: Die on inappropriate references to $wgTitle, especially from parser extensions. X-Git-Tag: 1.6.0~259 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=93725c1b065b357db4c115ea5de6da93f9df553e;p=lhc%2Fweb%2Fwiklou.git Die on inappropriate references to $wgTitle, especially from parser extensions. --- 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 );