Merge "EditPage: Try to avoid using $wgTitle"
[lhc/web/wiklou.git] / includes / EditPage.php
index 54b4cf5..0ea61c0 100644 (file)
@@ -469,6 +469,10 @@ class EditPage {
         */
        public function getContextTitle() {
                if ( is_null( $this->mContextTitle ) ) {
+                       wfDebugLog(
+                               'GlobalTitleFail',
+                               __METHOD__ . ' called by ' . wfGetAllCallers( 5 ) . ' with no title set.'
+                       );
                        global $wgTitle;
                        return $wgTitle;
                } else {