From 86af0bc64c9115dde234dd621d039a9c5d7e1c55 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 20 Dec 2007 03:09:19 +0000 Subject: [PATCH] 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. --- includes/Title.php | 6 ++++++ 1 file changed, 6 insertions(+) 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 ) ); -- 2.20.1