From: Adam Magness Date: Tue, 23 Jan 2018 17:47:30 +0000 (-0500) Subject: Update function and sprintf X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f7e9b74dca7b19b21164318b0ab7f537fb271d28;p=friendica.git Update function and sprintf Update variable to static function and remove sprintf wrappers --- diff --git a/boot.php b/boot.php index 58c0cc6c31..0f09d9c56b 100644 --- a/boot.php +++ b/boot.php @@ -781,7 +781,7 @@ function run_update_function($x) //send the administrator an e-mail DBStructure::updateFail( $x, - sprintf(L10n::t('Update %s failed. See error logs.'), $x) + L10n::t('Update %s failed. See error logs.', $x) ); return false; } else { diff --git a/include/text.php b/include/text.php index a366e78477..ffa0ad0ed6 100644 --- a/include/text.php +++ b/include/text.php @@ -952,7 +952,7 @@ function contact_block() { dbesc(implode(",", $contacts))); if (DBM::is_result($r)) { - $contacts = sprintf(L10n::tt('%d Contact', '%d Contacts', $total), $total); + $contacts = L10n::tt('%d Contact', '%d Contacts', $total); $micropro = []; foreach ($r as $rr) { $micropro[] = micropro($rr, true, 'mpfriend'); @@ -1411,7 +1411,7 @@ function prepare_body(&$item, $attach = false, $preview = false) { while ((strpos($s, $spoilersearch) !== false)) { $pos = strpos($s, $spoilersearch); $rnd = random_string(8); - $spoilerreplace = '
' . sprintf(L10n::t('Click to open/close')) . ''. + $spoilerreplace = '
' . L10n::t('Click to open/close') . ''. '