Skip to content

A platform for community discussion. Free, open, simple.

DEV: Rename `hilight` to `highlight` (#13526)

Jarek Radosz61472d6aaa61
diff --git a/app/mailers/user_notifications.rb b/app/mailers/user_notifications.rb
index e7c88292142..31336ce6c5f 100644
--- a/app/mailers/user_notifications.rb
+++ b/app/mailers/user_notifications.rb
@@ -662,7 +662,7 @@ class UserNotifications < ActionMailer::Base
message = email_post_markdown(post) + (reached_limit ? "\n\n#{I18n.t "user_notifications.reached_limit", count: SiteSetting.max_emails_per_day_per_user}" : "")
end
- first_footer_classes = "hilight"
+ first_footer_classes = "highlight"
if (allow_reply_by_email && user.staged) || (user.suspended? || user.staged?)
first_footer_classes = ""
end
diff --git a/lib/email/styles.rb b/lib/email/styles.rb
index 73c6e08329c..7546740cd0f 100644
--- a/lib/email/styles.rb
+++ b/lib/email/styles.rb
@@ -185,7 +185,7 @@ module Email
def format_html
correct_first_body_margin
correct_footer_style
- correct_footer_style_hilight_first
+ correct_footer_style_highlight_first
reset_tables
html_lang = SiteSetting.default_locale.sub("_", "-")
@@ -376,9 +376,9 @@ module Email
end
end
- def correct_footer_style_hilight_first
+ def correct_footer_style_highlight_first
footernum = 0
- @fragment.css('.footer.hilight').each do |element|
+ @fragment.css('.footer.highlight').each do |element|
linknum = 0
element.css('a').each do |inner|
# we want the first footer link to be specially highlighted as IMPORTANT