Begin logging RequestContexts relying on global title

Change-Id: I72c5c3fb75c9ceff02390c91b3735f2da90845de
This commit is contained in:
Chad Horohoe 2014-09-22 15:24:52 -07:00
parent 465ddbc41f
commit 6fc2e60319

View file

@ -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;