From 4a2fe6aefe06900bdb02b1462b7b4c26ece46985 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Thu, 5 Aug 2010 15:37:21 +0000 Subject: [PATCH] (bug 24668) Followup to r48165: code accounting for pages being moved OUT of the MediaWiki namespace needs to actually be run when moving OUT of it, not when moving INTO it --- includes/Title.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index e3760779cf..9bb6f83eb7 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -3135,9 +3135,8 @@ class Title { $u->doUpdate(); } # Update message cache for interface messages - if ( $nt->getNamespace() == NS_MEDIAWIKI ) { - global $wgMessageCache; - + global $wgMessageCache; + if ( $this->getNamespace() == NS_MEDIAWIKI ) { # @bug 17860: old article can be deleted, if this the case, # delete it from message cache if ( $this->getArticleID() === 0 ) { @@ -3146,7 +3145,8 @@ class Title { $oldarticle = new Article( $this ); $wgMessageCache->replace( $this->getDBkey(), $oldarticle->getContent() ); } - + } + if ( $nt->getNamespace() == NS_MEDIAWIKI ) { $newarticle = new Article( $nt ); $wgMessageCache->replace( $nt->getDBkey(), $newarticle->getContent() ); } -- 2.20.1