From: Antoine Musso Date: Fri, 12 Aug 2005 13:18:57 +0000 (+0000) Subject: No check needed when viewing old versions X-Git-Tag: 1.6.0~2015 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=062dc6198ec874cc603a217420ee1b53dacfe92b;p=lhc%2Fweb%2Fwiklou.git No check needed when viewing old versions --- diff --git a/index.php b/index.php index 3ad6f783ba..d68c103cbd 100644 --- 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) {