From 8b6bce562634c7885dfa3b38bf0b5f9bf98ef4d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Mon, 22 May 2023 15:21:10 +0200 Subject: [PATCH] Parentheses required --- lib/redmine_dmsf/patches/formatting_helper_patch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine_dmsf/patches/formatting_helper_patch.rb b/lib/redmine_dmsf/patches/formatting_helper_patch.rb index d6cdc0f1..7c6b6c41 100644 --- a/lib/redmine_dmsf/patches/formatting_helper_patch.rb +++ b/lib/redmine_dmsf/patches/formatting_helper_patch.rb @@ -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)