Add one more level for GlobalTitleFail logging
authorKunal Mehta <legoktm@member.fsf.org>
Thu, 15 Sep 2016 22:41:11 +0000 (15:41 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Thu, 15 Sep 2016 22:41:11 +0000 (15:41 -0700)
htmlspecialchars/Message->__toString/Message->toString/Message->parseText/MessageCache->parse
is useless without the caller of htmlspecialchars().

Change-Id: I2dad5a487225a11b98149610f1c775057f8baad2

includes/cache/MessageCache.php

index d254d3d..e871855 100644 (file)
@@ -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...