Skip to content

Commit

Permalink
Merge pull request #2578 from Leantime/language-cache-patch
Browse files Browse the repository at this point in the history
Update Language.php
  • Loading branch information
marcelfolaron authored Jul 10, 2024
2 parents f81a5cb + 5e67df7 commit 85e015b
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 85e015b

Please sign in to comment.