From 4ffcb77554d70623b2bf27dbbb9b6868a65dd87a Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 20 Oct 2018 09:02:35 -0400 Subject: [PATCH] Simplify L10n::t + sprintf instances --- src/Database/DBStructure.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Database/DBStructure.php b/src/Database/DBStructure.php index db775b59c1..50566dc877 100644 --- a/src/Database/DBStructure.php +++ b/src/Database/DBStructure.php @@ -77,10 +77,9 @@ class DBStructure The friendica developers released update %s recently, but when I tried to install it, something went terribly wrong. This needs to be fixed soon and I can't do it alone. Please contact a - friendica developer if you can not help me on your own. My database might be invalid.")); - $body = L10n::t("The error message is\n[pre]%s[/pre]"); - $preamble = sprintf($preamble, $update_id); - $body = sprintf($body, $error_message); + friendica developer if you can not help me on your own. My database might be invalid.", + $update_id)); + $body = L10n::t("The error message is\n[pre]%s[/pre]", $error_message); notification([ 'uid' => $admin['uid'],