From 8abf42a5583a809adb340200706538e8ee39dfc5 Mon Sep 17 00:00:00 2001 From: Serhii Korneliuk Date: Mon, 26 Jun 2023 00:43:19 +0300 Subject: [PATCH] [FIX] Filter Evo global translates. --- src/Controllers/sLangController.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Controllers/sLangController.php b/src/Controllers/sLangController.php index 6b84bc6..451ee90 100644 --- a/src/Controllers/sLangController.php +++ b/src/Controllers/sLangController.php @@ -310,8 +310,10 @@ public function parseBlade(): void if (is_array($match) && is_array($match[0]) && count($match[0])) { foreach ($match[0] as $item) { - if (!Str::of($item)->contains('::') && str_starts_with('global.', $item)) { - $list[] = str_replace(["@lang('", "')"], '', $item); + if (!Str::of($item)->contains('::')) { + if (!str_starts_with($item, 'global.')) { + $list[] = str_replace(["@lang('", "')"], '', $item); + } } } }