better fix for performance

This commit is contained in:
Hystepik
2025-01-09 09:21:45 +01:00
parent 0c05b8110f
commit 3fcdba2bc3

View File

@@ -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 {