r10658 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r10657‎ | r10658 | r10659 >
Date:11:42, 20 August 2005
Author:timstarling
Status:old
Tags:
Comment:
fixed redirects from one namespace to another
Modified paths:
  • /trunk/phase3/index.php (modified) (history)

Diff [purge]

Index: trunk/phase3/index.php
@@ -149,9 +149,8 @@
150150 $wgArticle = new Article( $wgTitle );
151151 $rTitle = Title::newFromRedirect( $wgArticle->fetchContent() );
152152 if($rTitle) {
153 - if( $rTitle->getNamespace() == $ns ) {
154 - $wgArticle->mContentLoaded=false;
155 - }
 153+ # Reload from the page pointed to later
 154+ $wgArticle->mContentLoaded = false;
156155 $ns = $rTitle->getNamespace();
157156 }
158157 }

Status & tagging log