MessageCache: Improve GlobalTitleFail log message
authorKunal Mehta <legoktm@gmail.com>
Mon, 15 Dec 2014 18:32:38 +0000 (10:32 -0800)
committerUmherirrender <umherirrender_de.wp@web.de>
Mon, 15 Dec 2014 18:34:32 +0000 (18:34 +0000)
Same as 18d952dbcb6c7

Change-Id: Iabb1eb7481026cfdf0610b0125d5b577febcc0f4

includes/cache/MessageCache.php

index 532236e..2f6a1b1 100644 (file)
@@ -1059,7 +1059,7 @@ class MessageCache {
                wfProfileIn( __METHOD__ );
                if ( !$title || !$title instanceof Title ) {
                        global $wgTitle;
-                       wfDebugLog( 'GlobalTitleFail', __METHOD__ . ' called by ' . wfGetAllCallers() . ' with no title set.' );
+                       wfDebugLog( 'GlobalTitleFail', __METHOD__ . ' called by ' . wfGetAllCallers( 5 ) . ' with no title set.' );
                        $title = $wgTitle;
                }
                // Sometimes $wgTitle isn't set either...