From 4e9c7fe30d8730f107b72cab4dbf1ee6ee808ec2 Mon Sep 17 00:00:00 2001 From: dtygel Date: Sun, 22 Mar 2015 21:16:05 -0300 Subject: [PATCH] Fix error in return values from redirect_to_translation --- app/controllers/public/content_viewer_controller.rb | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/app/controllers/public/content_viewer_controller.rb b/app/controllers/public/content_viewer_controller.rb index b6a94b8..5d9cac5 100644 --- a/app/controllers/public/content_viewer_controller.rb +++ b/app/controllers/public/content_viewer_controller.rb @@ -107,10 +107,12 @@ class ContentViewerController < ApplicationController if translation.language == locale @page = translation redirect_to :profile => @page.profile.identifier, :page => @page.explode_path + return true end end end end + false end def pass_without_comment_captcha? -- libgit2 0.21.2