From 5fc490442cd1a3d361e7b124d5eb0575c7e377ac Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Thu, 15 Sep 2016 15:41:11 -0700 Subject: [PATCH] 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 --- includes/cache/MessageCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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... -- 2.20.1