From fafdfd30edf1da98d0fae331751b2ddc24d74e43 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 12 Jun 2005 13:39:28 +0000 Subject: [PATCH] * (bug 2394) Undo incompatible breakage to {{msg:}} compatiblity includes --- RELEASE-NOTES | 1 + includes/Parser.php | 15 +++++---------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index c5cf73ffb3..21d9808853 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -279,6 +279,7 @@ Various bugfixes, small features, and a few experimental things: * (bug 2384) Fix typo in regex for IP address checking * (bug 650) Prominently link MySQL 4.1 help page in installer if a possible version conflict is detected +* (bug 2394) Undo incompatible breakage to {{msg:}} compatiblity includes === Caveats === diff --git a/includes/Parser.php b/includes/Parser.php index fd9b960cb6..0824335b34 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -2083,9 +2083,13 @@ class Parser $mwMsgnw =& MagicWord::get( MAG_MSGNW ); if ( $mwMsgnw->matchStartAndRemove( $part1 ) ) { $nowiki = true; + } else { + # Remove obsolete MSG: + $mwMsg =& MagicWord::get( MAG_MSG ); + $mwMsg->matchStartAndRemove( $part1 ); } - # int: is the wikitext equivalent of wfMsg() + # Check if it is an internal message $mwInt =& MagicWord::get( MAG_INT ); if ( $mwInt->matchStartAndRemove( $part1 ) ) { if ( $this->incrementIncludeCount( 'int:'.$part1 ) ) { @@ -2093,15 +2097,6 @@ class Parser $found = true; } } - - # msg: is the wikitext equivalent of wfMsgForContent() - $mwMsg =& MagicWord::get( MAG_MSG ); - if ( $mwMsg->matchStartAndRemove( $part1 ) ) { - if ( $this->incrementIncludeCount( 'msg:'.$part1 ) ) { - $text = $linestart . wfMsgReal( $part1, $args, true, true ); - $found = true; - } - } } # NS -- 2.20.1