* (bug 8992) Fix a remaining raw use of REQUEST_URI in history
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 15 Feb 2007 23:40:05 +0000 (23:40 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 15 Feb 2007 23:40:05 +0000 (23:40 +0000)
RELEASE-NOTES
includes/Wiki.php

index 4a06b02..49e50e2 100644 (file)
@@ -186,6 +186,8 @@ lighter making things easier to read.
   for better localisations.
 * (bug 8944) The deprecated is_a() function is used in StubObjects.php
 * (bug 8978) Georgian i18n update
+* (bug 8992) Fix a remaining raw use of REQUEST_URI in history
+
 
 == Languages updated ==
 
index 85963f5..9437ce4 100644 (file)
@@ -422,7 +422,8 @@ class MediaWiki {
                                }
                                break;
                        case 'history':
-                               if( $_SERVER['REQUEST_URI'] == $title->getInternalURL( 'action=history' ) ) {
+                               global $wgRequest;
+                               if( $wgRequest->getFullRequestURL() == $title->getInternalURL( 'action=history' ) ) {
                                        $output->setSquidMaxage( $this->getVal( 'SquidMaxage' ) );
                                }
                                $history = new PageHistory( $article );