From: Aaron Schulz Date: Thu, 20 Dec 2007 03:09:19 +0000 (+0000) Subject: Fix bug where message cache was not updated for page moves to MediaWiki namespace... X-Git-Tag: 1.31.0-rc.0~50331 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=86af0bc64c9115dde234dd621d039a9c5d7e1c55;p=lhc%2Fweb%2Fwiklou.git Fix bug where message cache was not updated for page moves to MediaWiki namespace. If one wanted to make a custom message and made it under the wrong name, moving the page to correct one didn't register. --- diff --git a/includes/Title.php b/includes/Title.php index e10fe13df9..3521360017 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2382,6 +2382,12 @@ class Title { } if( $u ) $u->doUpdate(); + # Update message catch for interface messages + if( $nt->getNamespace() == NS_MEDIAWIKI ) { + global $wgMessageCache; + $newarticle = new Article( $nt ); + $wgMessageCache->replace( $nt->getDBkey(), $newarticle->getContent() ); + } global $wgUser; wfRunHooks( 'TitleMoveComplete', array( &$this, &$nt, &$wgUser, $pageid, $redirid ) );