From 8c732e94ab5d1c432d1478577fa74929686f763e Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 6 Oct 2015 16:23:40 +0200 Subject: [PATCH] some printf messages need to have the argument preprocessed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit or change to echo with inner printf() Before it broke like this: ` Größe von Vorsch. ändern` which is wrong --- include/functions_images.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/functions_images.inc.php b/include/functions_images.inc.php index 16431aa1..56ed09b1 100644 --- a/include/functions_images.inc.php +++ b/include/functions_images.inc.php @@ -826,7 +826,8 @@ function serendipity_generateThumbs() { if ($returnsize !== false ) { // Only print the resize message the first time if (!$msg_printed) { - printf(' ' . RESIZE_BLAHBLAH, THUMBNAIL_SHORT . "\n"); + $resizemedia = sprintf(RESIZE_BLAHBLAH, THUMBNAIL_SHORT); + printf(' ' . $resizemedia . "\n"); echo "\n" . '