Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bugfix to TranslateResponseCache

Signed-off-by: Phil Burrows <peburrows@gmail.com>
  • Loading branch information...
commit a774149f63556c0926d671bb4cae80ced2c6f2d7 1 parent 8cd8541
Manuel authored committed
Showing with 2 additions and 4 deletions.
  1. +2 −4 app/models/translate_response_cache.rb
View
6 app/models/translate_response_cache.rb
@@ -84,9 +84,7 @@ def suffixize(lang)
# cache in a separate directory (i.e. en/), but for now, we're just adding the extension
private
def translator_path(path)
- req = kk_request
- path = path + req.suffixize(req.language) unless path.match(/[\.css|\.js]$/)
- path
+ path =~ /\.css|\.js$/ ? path : kk_request.suffixize(kk_request.language)
end
def page_cache_path(path)
@@ -125,4 +123,4 @@ def read_response(path, response, request)
response
end
}
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.