Skip to content

Commit

Permalink
Fixed lang defined as constant instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
josaphatim committed Feb 14, 2024
1 parent f0c6b17 commit 506c659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/output_modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ protected function output() {
else {
$res .= 'var hm_delete_prompt = function() { return true; };';
}
$res .= 'window.hm_current_lang = '.$this->lang.';'.
$res .= 'window.hm_current_lang = "'.$this->lang.'";'.
'window.hm_translations = '.json_encode($this->all_trans()).';'.
'var hm_trans = function(key, lang = window.hm_current_lang) {'.
' const langTranslations = window.translations && window.translations[lang];'.
Expand Down

0 comments on commit 506c659

Please sign in to comment.