From 87449ccad97cb08072a959c912d153cbf1b67eb4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Fri, 13 May 2005 10:28:54 +0000 Subject: [PATCH] * Removed some strange code which doesn't have any reason for being there (and afaik never has) * Using single quotes for msg's --- includes/SpecialAllmessages.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/SpecialAllmessages.php b/includes/SpecialAllmessages.php index fa7e0b380b..e20d1749c2 100644 --- a/includes/SpecialAllmessages.php +++ b/includes/SpecialAllmessages.php @@ -23,9 +23,8 @@ function wfSpecialAllmessages() { wfProfileIn( "$fname-setup"); $ot = $wgRequest->getText( 'ot' ); - $mwMsg =& MagicWord::get( MAG_MSG ); - $navText = wfMsg( 'allmessagestext', $mwMsg->getSynonym( 0 ) ); + $navText = wfMsg( 'allmessagestext' ); $first = true; @@ -78,7 +77,7 @@ function makePhp($messages) { } else { $comment = ''; } - $txt .= "'".$key."' => \"".str_replace('"','\"',$m['msg'])."\",$comment\n"; + $txt .= "'$key' => '" . preg_replace( "/(?