typo and minor tweak to permanent redirect
authorGabriel Wicke <gwicke@users.mediawiki.org>
Mon, 1 Mar 2004 22:28:33 +0000 (22:28 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Mon, 1 Mar 2004 22:28:33 +0000 (22:28 +0000)
includes/OutputPage.php

index 0e028cb..1b645df 100644 (file)
@@ -243,7 +243,7 @@ class OutputPage {
                                global $wgServer;
                                $this->mRedirect = $wgServer . $this->mRedirect;
                        }
-                       if( $this->mRdirectCode != '302') {
+                       if( $this->mRdirectCode == '301') {
                                header("HTTP/1.1 {$this->mRedirectCode} Moved Permanently");
                                $this->mLastModified = gmdate( "D, j M Y H:i:s", wfTimestamp2Unix(
                                        max( $timestamp, $wgUser->mTouched ) ) ) . " GMT";