From 6fc2e60319c7316f124a843bbd5d06e3898ad401 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 22 Sep 2014 15:24:52 -0700 Subject: [PATCH] Begin logging RequestContexts relying on global title Change-Id: I72c5c3fb75c9ceff02390c91b3735f2da90845de --- includes/context/RequestContext.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/context/RequestContext.php b/includes/context/RequestContext.php index ede10fe93c..db57371189 100644 --- a/includes/context/RequestContext.php +++ b/includes/context/RequestContext.php @@ -140,6 +140,7 @@ class RequestContext implements IContextSource { if ( $this->title === null ) { global $wgTitle; # fallback to $wg till we can improve this $this->title = $wgTitle; + wfDebugLog( 'GlobalTitleFail', __METHOD__ . ' called by ' . wfGetCaller() . 'with no title set.' ); } return $this->title; -- 2.20.1