Navigation Menu

Skip to content

Commit

Permalink
Merge pull request mikdiet#1 from pyromaniac/master
Browse files Browse the repository at this point in the history
Lil fix
  • Loading branch information
mikdiet committed Jul 31, 2011
2 parents c66f30e + de6b313 commit dda8af2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rvmrc
@@ -1 +1 @@
rvm 1.9.2@translation_panel --create
rvm use 1.9.2@translation_panel --create
2 changes: 1 addition & 1 deletion lib/translation_panel/filter.rb
Expand Up @@ -13,7 +13,7 @@ def before(controller)
end

def after(controller)
if controller.send(@condition)
if controller.send(@condition) && controller.response.status == 200
case controller.response.content_type
when "text/html"
return unless page = controller.response.body
Expand Down

0 comments on commit dda8af2

Please sign in to comment.