From 3fcdba2bc3e1fd5db1d2aa0110c473ee62c0ffde Mon Sep 17 00:00:00 2001 From: Hystepik Date: Thu, 9 Jan 2025 09:21:45 +0100 Subject: [PATCH] better fix for performance --- htdocs/core/class/translate.class.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php index 3916ef277d6..905ccf9349b 100644 --- a/htdocs/core/class/translate.class.php +++ b/htdocs/core/class/translate.class.php @@ -699,9 +699,7 @@ class Translate $str ); - if (preg_match('/%\)/', $str)) { - $str = preg_replace('/%\)/', '__percent__)', $str); - } + $str = preg_replace('/%\)/', '__percent__)', $str); if (strpos($key, 'Format') !== 0) { try {