Commit 4e9c7fe30d8730f107b72cab4dbf1ee6ee808ec2
Committed by
Braulio Bhavamitra
1 parent
cccac6a3
Exists in
master
and in
29 other branches
Fix error in return values from redirect_to_translation
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
app/controllers/public/content_viewer_controller.rb
| @@ -107,10 +107,12 @@ class ContentViewerController < ApplicationController | @@ -107,10 +107,12 @@ class ContentViewerController < ApplicationController | ||
| 107 | if translation.language == locale | 107 | if translation.language == locale |
| 108 | @page = translation | 108 | @page = translation |
| 109 | redirect_to :profile => @page.profile.identifier, :page => @page.explode_path | 109 | redirect_to :profile => @page.profile.identifier, :page => @page.explode_path |
| 110 | + return true | ||
| 110 | end | 111 | end |
| 111 | end | 112 | end |
| 112 | end | 113 | end |
| 113 | end | 114 | end |
| 115 | + false | ||
| 114 | end | 116 | end |
| 115 | 117 | ||
| 116 | def pass_without_comment_captcha? | 118 | def pass_without_comment_captcha? |