No check needed when viewing old versions
authorAntoine Musso <hashar@users.mediawiki.org>
Fri, 12 Aug 2005 13:18:57 +0000 (13:18 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Fri, 12 Aug 2005 13:18:57 +0000 (13:18 +0000)
index.php

index 3ad6f78..d68c103 100644 (file)
--- a/index.php
+++ b/index.php
@@ -145,7 +145,7 @@ if( !$wgDisableInternalSearch && !is_null( $search ) && $search !== '' ) {
        $ns = $wgTitle->getNamespace();
 
        // Namespace might change when using redirects
-       if($action == 'view') {
+       if($action == 'view' && !$wgRequest->getVal( 'oldid' ) ) {
                $wgArticle = new Article( $wgTitle );
                $rTitle = Title::newFromRedirect( $wgArticle->fetchContent() );
                if($rTitle) {