Skip to content

Commit

Permalink
[FIX] Filter Evo global translates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Seiger committed Jun 25, 2023
1 parent 341b244 commit 8abf42a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Controllers/sLangController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
}
Expand Down

0 comments on commit 8abf42a

Please sign in to comment.