fixed redirects from one namespace to another
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 20 Aug 2005 11:42:19 +0000 (11:42 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 20 Aug 2005 11:42:19 +0000 (11:42 +0000)
index.php

index d68c103..c9b09ad 100644 (file)
--- a/index.php
+++ b/index.php
@@ -149,9 +149,8 @@ if( !$wgDisableInternalSearch && !is_null( $search ) && $search !== '' ) {
                $wgArticle = new Article( $wgTitle );
                $rTitle = Title::newFromRedirect( $wgArticle->fetchContent() );
                if($rTitle) {
-                       if( $rTitle->getNamespace() == $ns ) {
-                               $wgArticle->mContentLoaded=false;
-                       }
+                       # Reload from the page pointed to later
+                       $wgArticle->mContentLoaded = false;
                        $ns = $rTitle->getNamespace();
                }
        }