From: Reedy Date: Mon, 30 Apr 2012 17:55:38 +0000 (+0100) Subject: Forward port of https://www.mediawiki.org/wiki/Special:Code/MediaWiki/105964 X-Git-Tag: 1.31.0-rc.0~23778^2~1 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/wiki/supprimer.php?a=commitdiff_plain;h=2531715b9d07021b9b1040f4bc9bb277c2d8ff19;p=lhc%2Fweb%2Fwiklou.git Forward port of https://mediawiki.org/wiki/Special:Code/MediaWiki/105964 "Temporary workaround for bug 31576. The logs show that once every hour or so, a job runner somewhere in the cluster somehow loses all its magic words and starts hitting this case. Throwing an exception should kill the job runner before it does too much damage." Change-Id: I229e87a5bd323dbc97b85ae470474cc97243c7af --- diff --git a/includes/MagicWord.php b/includes/MagicWord.php index 131ae1ddea..c304f8a35d 100644 --- a/includes/MagicWord.php +++ b/includes/MagicWord.php @@ -291,8 +291,8 @@ class MagicWord { $wgContLang->getMagic( $this ); if ( !$this->mSynonyms ) { $this->mSynonyms = array( 'dkjsagfjsgashfajsh' ); - #throw new MWException( "Error: invalid magic word '$id'" ); - wfDebugLog( 'exception', "Error: invalid magic word '$id'\n" ); + throw new MWException( "Error: invalid magic word '$id'" ); + #wfDebugLog( 'exception', "Error: invalid magic word '$id'\n" ); } wfProfileOut( __METHOD__ ); }