Skip to content

Commit

Permalink
Fix for the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lackac committed Feb 6, 2009
1 parent 35edc1b commit 397300a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locale.rb
Expand Up @@ -19,7 +19,7 @@ def uri_exists?(uri)
locales.each do |locale| locales.each do |locale|
fn = "#{locale.split(".").first}.#{lego}.yml" fn = "#{locale.split(".").first}.#{lego}.yml"
path = "#{@base_path}/locales/#{fn}" path = "#{@base_path}/locales/#{fn}"
if @base_path != /^https?:\/\// or uri_exists?(path) if @base_path !~ /^https?:\/\// or uri_exists?(path)
content = open(path).read rescue nil content = open(path).read rescue nil
file "config/locales/#{fn}", content if content file "config/locales/#{fn}", content if content
end end
Expand Down

0 comments on commit 397300a

Please sign in to comment.