Merge "Begin logging RequestContexts relying on global title"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 22 Sep 2014 23:11:13 +0000 (23:11 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 22 Sep 2014 23:11:13 +0000 (23:11 +0000)
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;