From: Roan Kattouw Date: Thu, 5 Aug 2010 15:37:21 +0000 (+0000) Subject: (bug 24668) Followup to r48165: code accounting for pages being moved OUT of the... X-Git-Tag: 1.31.0-rc.0~35703 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=4a2fe6aefe06900bdb02b1462b7b4c26ece46985;p=lhc%2Fweb%2Fwiklou.git (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 --- 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() ); }