]> git.mxchange.org Git - friendica.git/commitdiff
Simplify L10n::t + sprintf instances
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 20 Oct 2018 13:02:35 +0000 (09:02 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 20 Oct 2018 13:02:35 +0000 (09:02 -0400)
src/Database/DBStructure.php

index db775b59c105bf841c604ee48f782ec5f592ff93..50566dc877c00bdd35d8f28859107321f44ba3c1 100644 (file)
@@ -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'],