From d6b3d7fb1a7a3dca701dfe5cf95a832b3eb055f9 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 4 Oct 2010 14:24:04 -0700 Subject: Fix unescaped dollar signs in double-quoted strings due to localization updates (%1$s etc) --- lib/mail.php | 6 +++--- lib/usernoprofileexception.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/mail.php b/lib/mail.php index ab5742e33..a3b3e05b8 100644 --- a/lib/mail.php +++ b/lib/mail.php @@ -252,14 +252,14 @@ function mail_subscribe_notify_profile($listenee, $other) // TRANS: Main body of new-subscriber notification e-mail $body = sprintf(_('%1$s is now listening to your notices on %2$s.'."\n\n". - "\t".'%3$s'."\n\n". + "\t".'%3\$s'."\n\n". '%4$s'. '%5$s'. '%6$s'. - "\n".'Faithfully yours,'."\n".'%7$s.'."\n\n". + "\n".'Faithfully yours,'."\n".'%7\$s.'."\n\n". "----\n". "Change your email address or ". - "notification options at ".'%8$s' ."\n"), + "notification options at ".'%8\$s' ."\n"), $long_name, common_config('site', 'name'), $other->profileurl, diff --git a/lib/usernoprofileexception.php b/lib/usernoprofileexception.php index e0186fef9..954d31b0d 100644 --- a/lib/usernoprofileexception.php +++ b/lib/usernoprofileexception.php @@ -57,7 +57,7 @@ class UserNoProfileException extends ServerException // TRANS: Exception text shown when no profile can be found for a user. // TRANS: %1$s is a user nickname, $2$d is a user ID (number). - $message = sprintf(_("User %1$s (%2$d) has no profile record."), + $message = sprintf(_('User %1$s (%2$d) has no profile record.'), $user->nickname, $user->id); parent::__construct($message); -- cgit v1.2.3-54-g00ecf