From: Gabriel Wicke Date: Mon, 1 Mar 2004 22:28:33 +0000 (+0000) Subject: typo and minor tweak to permanent redirect X-Git-Tag: 1.3.0beta1~884 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=02b7c1955b5081f1bb991f8b57b01b468d90b9f1;p=lhc%2Fweb%2Fwiklou.git typo and minor tweak to permanent redirect --- 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";