(bug 17990) trackback.php lacks a .php5 equivalent
authorChad Horohoe <demon@users.mediawiki.org>
Mon, 16 Mar 2009 20:11:36 +0000 (20:11 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Mon, 16 Mar 2009 20:11:36 +0000 (20:11 +0000)
RELEASE-NOTES
includes/Title.php
trackback.php5 [new file with mode: 0644]

index b705d77..563030d 100644 (file)
@@ -267,7 +267,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   two "page" parameters
 * (bug 17972) Special:FileDuplicateSearch form now works correctly on wikis that
   don't use PathInfo or short urls
-
+* (bug 17990) trackback.php now has a trackback.php5 alias and works with 
+  $wgScriptExtension
 
 == API changes in 1.15 ==
 * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions
index a6fd58a..6f7d967 100644 (file)
@@ -3500,9 +3500,9 @@ class Title {
         * @return \type{\string} Trackback URL
         */
        public function trackbackURL() {
-               global $wgScriptPath, $wgServer;
+               global $wgScriptPath, $wgServer, $wgScriptExtension;
 
-               return "$wgServer$wgScriptPath/trackback.php?article="
+               return "$wgServer$wgScriptPath/trackback$wgScriptExtension?article="
                        . htmlspecialchars(urlencode($this->getPrefixedDBkey()));
        }
 
diff --git a/trackback.php5 b/trackback.php5
new file mode 100644 (file)
index 0000000..fe81176
--- /dev/null
@@ -0,0 +1 @@
+<?php require './trackback.php';
\ No newline at end of file