diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/models/blog_comment.rb | 2 | ||||
-rw-r--r-- | app/views/admin/blog/_submenu.html.erb | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/app/models/blog_comment.rb b/app/models/blog_comment.rb index 5718295..d9e1917 100644 --- a/app/models/blog_comment.rb +++ b/app/models/blog_comment.rb @@ -14,7 +14,7 @@ class BlogComment < ActiveRecord::Base end def toggle - RefinerySetting[:comment_moderation] = !(currently = self.enabled?) + RefinerySetting[:comment_moderation] = !self.enabled? end end end diff --git a/app/views/admin/blog/_submenu.html.erb b/app/views/admin/blog/_submenu.html.erb index c232032..de82cd2 100644 --- a/app/views/admin/blog/_submenu.html.erb +++ b/app/views/admin/blog/_submenu.html.erb @@ -50,7 +50,6 @@ </ul> <ul class='collapsible_menu'> - <li> <%= link_to t('.settings.title'), admin_blog_settings_path, :class => 'settings_icon' %> @@ -60,7 +59,7 @@ :class => "#{BlogComment::Moderation.enabled? ? 'success' : 'failure'}_icon" %> </li> <li> - <%= link_to t('.settings.update_notified'), + <%= link_to t('.settings.update_notified'), notification_recipients_admin_blog_settings_url(:dialog => true, :height => 400), :class => 'user_comment_icon' %> </li> |