Skip to content

Commit

Permalink
trim flag name for translation
Browse files Browse the repository at this point in the history
  • Loading branch information
rmcgirr83 committed Sep 22, 2024
1 parent c7b225f commit 9df1d41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/nationalflags.php
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,9 @@ public function trash_the_cache()
*/
public function flag_name_lang_var($flag_name = '')
{
if (array_key_exists((strtoupper(str_replace(" ", "_", $flag_name))), $this->language->get_lang_array()))
if (array_key_exists((strtoupper(str_replace(" ", "_", trim($flag_name)))), $this->language->get_lang_array()))
{
$flag_name = html_entity_decode($this->language->lang(strtoupper(str_replace(" ", "_", $flag_name))));
$flag_name = html_entity_decode($this->language->lang(strtoupper(str_replace(" ", "_", trim($flag_name)))));
}

return $flag_name;
Expand Down

0 comments on commit 9df1d41

Please sign in to comment.