aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorDavid Cabo <david@calibea.com>2011-08-08 13:22:47 +0200
committerSeb Bacon <seb.bacon@gmail.com>2011-08-11 15:01:24 +0100
commit2dd460cb432460fc32178140e3b4d6c31b55e883 (patch)
treebd567e8496154f83f3ca17d443ba643d29007ca1 /app/helpers/application_helper.rb
parent10e7ce5610731c073553072724c6ef7e44236781 (diff)
I18n'd hardcoded WhatDoTheyKnow strings, mostly in mails. Use named variable substitution in gettext strings.
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 9bdcb98cd..ec56566a9 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -14,6 +14,9 @@ module ApplicationHelper
# all of all.
include LinkToHelper
+ # Site-wide access to configuration settings
+ include ConfigHelper
+
# Copied from error_messages_for in active_record_helper.rb
def foi_error_messages_for(*params)
options = params.last.is_a?(Hash) ? params.pop.symbolize_keys : {}
@@ -45,7 +48,7 @@ module ApplicationHelper
''
end
end
-
+
# Highlight words, also escapes HTML (other than spans that we add)
def highlight_words(t, words, html = true)
if html