From 02b7c1955b5081f1bb991f8b57b01b468d90b9f1 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Mon, 1 Mar 2004 22:28:33 +0000 Subject: [PATCH] typo and minor tweak to permanent redirect --- includes/OutputPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 0e028cb86a..1b645df917 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -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"; -- 2.20.1