From a7c98b31ee4afe4e2b44b512ffeb7808a2856eeb Mon Sep 17 00:00:00 2001 From: Arne Heizmann Date: Sun, 25 Jul 2004 19:31:48 +0000 Subject: [PATCH] - 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 --- includes/SpecialValidate.php | 2 +- languages/Language.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)', -- 2.20.1