aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorTim Starling <tstarling@users.mediawiki.org>2005-08-20 11:42:19 +0000
committerTim Starling <tstarling@users.mediawiki.org>2005-08-20 11:42:19 +0000
commit534cd02a0b8ec02c0f3bb23f05d865498105da09 (patch)
tree221d8ae3f0dae74fed9f1c5c31341c36413b7d9f /index.php
parent5dd5121b58e036e00ca54c25665469f0e91ac625 (diff)
downloadmediawikicore-534cd02a0b8ec02c0f3bb23f05d865498105da09.tar.gz
mediawikicore-534cd02a0b8ec02c0f3bb23f05d865498105da09.zip
fixed redirects from one namespace to another
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/10658
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/index.php b/index.php
index d68c103cbde5..c9b09ad94253 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();
}
}