From: Kunal Mehta Date: Thu, 15 Sep 2016 22:41:11 +0000 (-0700) Subject: Add one more level for GlobalTitleFail logging X-Git-Tag: 1.31.0-rc.0~5540 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles_versions%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=5fc490442cd1a3d361e7b124d5eb0575c7e377ac;p=lhc%2Fweb%2Fwiklou.git Add one more level for GlobalTitleFail logging htmlspecialchars/Message->__toString/Message->toString/Message->parseText/MessageCache->parse is useless without the caller of htmlspecialchars(). Change-Id: I2dad5a487225a11b98149610f1c775057f8baad2 --- diff --git a/includes/cache/MessageCache.php b/includes/cache/MessageCache.php index d254d3d536..e871855a32 100644 --- a/includes/cache/MessageCache.php +++ b/includes/cache/MessageCache.php @@ -1089,7 +1089,7 @@ class MessageCache { if ( !$title || !$title instanceof Title ) { global $wgTitle; wfDebugLog( 'GlobalTitleFail', __METHOD__ . ' called by ' . - wfGetAllCallers( 5 ) . ' with no title set.' ); + wfGetAllCallers( 6 ) . ' with no title set.' ); $title = $wgTitle; } // Sometimes $wgTitle isn't set either...