Don't use $wgTitle here, as it would return an invalid trackback URL for any instance...
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 11 Sep 2008 19:38:57 +0000 (19:38 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 11 Sep 2008 19:38:57 +0000 (19:38 +0000)
includes/Title.php

index 5ef8507..fae7775 100644 (file)
@@ -3154,10 +3154,10 @@ class Title {
         * @return \type{\string} Trackback URL
         */
        public function trackbackURL() {
-               global $wgTitle, $wgScriptPath, $wgServer;
+               global $wgScriptPath, $wgServer;
 
                return "$wgServer$wgScriptPath/trackback.php?article="
-                       . htmlspecialchars(urlencode($wgTitle->getPrefixedDBkey()));
+                       . htmlspecialchars(urlencode($this->getPrefixedDBkey()));
        }
 
        /**