Begin logging RequestContexts relying on global title
authorChad Horohoe <chadh@wikimedia.org>
Mon, 22 Sep 2014 22:24:52 +0000 (15:24 -0700)
committerChad Horohoe <chadh@wikimedia.org>
Mon, 22 Sep 2014 22:25:19 +0000 (15:25 -0700)
Change-Id: I72c5c3fb75c9ceff02390c91b3735f2da90845de

includes/context/RequestContext.php

index ede10fe..db57371 100644 (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;