A free, self-hostable news aggregator…
i18n safer vsprintf (#5022)
Alexandre Alapetited105761fec48
diff --git a/lib/Minz/Translate.php b/lib/Minz/Translate.phpindex 19a86a00e..584f08aa0 100644--- a/lib/Minz/Translate.php+++ b/lib/Minz/Translate.php@@ -232,7 +232,7 @@ class Minz_Translate {}// Get the facultative arguments to replace i18n variables.- return vsprintf($translation_value, $args);+ return empty($args) ? $translation_value : vsprintf($translation_value, $args);}/**