From: Ævar Arnfjörð Bjarmason Date: Fri, 13 May 2005 10:28:54 +0000 (+0000) Subject: * Removed some strange code which doesn't have any reason for being there X-Git-Tag: 1.5.0alpha2~221 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=87449ccad97cb08072a959c912d153cbf1b67eb4;p=lhc%2Fweb%2Fwiklou.git * Removed some strange code which doesn't have any reason for being there (and afaik never has) * Using single quotes for msg's --- 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( "/(?