From: Tim Starling Date: Sat, 20 Aug 2005 11:42:19 +0000 (+0000) Subject: fixed redirects from one namespace to another X-Git-Tag: 1.6.0~1872 X-Git-Url: http://git.cyclocoop.org/geomaker.php?a=commitdiff_plain;h=534cd02a0b8ec02c0f3bb23f05d865498105da09;p=lhc%2Fweb%2Fwiklou.git fixed redirects from one namespace to another --- diff --git a/index.php b/index.php index d68c103cbd..c9b09ad942 100644 --- 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(); } }