From 0a807d86935bddcf147b20263b4b316fa18cb258 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 11 Sep 2008 19:38:57 +0000 Subject: [PATCH] Don't use $wgTitle here, as it would return an invalid trackback URL for any instance where $wgTitle is not the Title object in question. --- includes/Title.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index 5ef8507c37..fae7775ad9 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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())); } /** -- 2.20.1