From: Arne Heizmann Date: Sun, 25 Jul 2004 19:31:48 +0000 (+0000) Subject: - do not use str_replace to replace $1 in a message. Use wfMsg X-Git-Tag: 1.5.0alpha1~2592 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=a7c98b31ee4afe4e2b44b512ffeb7808a2856eeb;p=lhc%2Fweb%2Fwiklou.git - do not use str_replace to replace $1 in a message. Use wfMsg - do not use "this article" as a link text. Use the article title --- diff --git a/includes/SpecialValidate.php b/includes/SpecialValidate.php index 5f2300efaf..e0e72fa120 100644 --- a/includes/SpecialValidate.php +++ b/includes/SpecialValidate.php @@ -167,7 +167,7 @@ class Validation $html .= "\n" ; } $html .= "" ; - $html .= str_replace ( "$1" , $article->getLocalURL() , wfMsg("val_clear_old") ) ; + $html .= wfMsg ( 'val_clear_old', $skin->makeKnownLinkObj( $article ) ); $html .= "" ; $html .= "\n" ; } diff --git a/languages/Language.php b/languages/Language.php index d0258f30f8..602f91a29a 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -1258,7 +1258,7 @@ Type the name of the user in the box and press the button to make the user an ad 'makesysop' => 'Make a user into a sysop', # Validation -'val_clear_old' => 'Clear my other validation data for this article', +'val_clear_old' => 'Clear my other validation data for $1', 'val_noop' => 'No opinion', 'val_percent' => '$1%
($2 of $3 points by $4 users)', 'val_percent_single' => '$1%
($2 of $3 points by one user)',