Skip to content

Commit

Permalink
Update Language.php
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron authored Jul 10, 2024
1 parent f81a5cb commit 5e67df7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/Core/Language.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,16 @@ public function isValidLanguage(string $langCode): bool
public function readIni(): array
{
if (Cache::store('installation')->has('cache.language_resources_' . $this->language) && $this->config->debug == 0) {
$this->ini_array = Cache::store('installation')->set('cache.language_resources_' . $this->language, self::dispatch_filter(

$this->ini_array = self::dispatch_filter(
'language_resources',
Cache::store('installation')->get('cache.language_resources_' . $this->language),
[
'language' => $this->language,
]
));
);

Cache::store('installation')->set('cache.language_resources_' . $this->language, $this->ini_array);
return $this->ini_array;
}

Expand Down

0 comments on commit 5e67df7

Please sign in to comment.