Parentheses required

This commit is contained in:
Karel Pičman 2023-05-22 15:21:10 +02:00
parent 2a9412f596
commit 8b6bce5626

View File

@ -34,7 +34,7 @@ module RedmineDmsf
lang = current_language.to_s.downcase
path = File.join(File.dirname(__FILE__),
'..', '..', '..', 'assets', 'help', lang, 'wiki_syntax.html')
@dmsf_macro_list << File.exist?(path) ? "#{lang};#{l(:label_help)}" : "en;#{l(:label_help)}"
@dmsf_macro_list << (File.exist?(path) ? "#{lang};#{l(:label_help)}" : "en;#{l(:label_help)}")
path = File.join(File.dirname(__FILE__),
'..', '..', '..', 'assets', 'javascripts', 'lang', "dmsf_button-#{lang}.js")
lang = 'en' unless File.exist?(path)