From 397300a0b737b72b741ecac9136bf45539fe140f Mon Sep 17 00:00:00 2001 From: Laszlo Bacsi Date: Fri, 6 Feb 2009 13:19:15 +0100 Subject: [PATCH] Fix for the fix --- locale.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale.rb b/locale.rb index 6e4d071..61c3966 100644 --- a/locale.rb +++ b/locale.rb @@ -19,7 +19,7 @@ def uri_exists?(uri) locales.each do |locale| fn = "#{locale.split(".").first}.#{lego}.yml" 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 file "config/locales/#{fn}", content if content end