I moved Potlatch's locales but didn't update this, which broke all i18n
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 23 Sep 2009 23:34:43 +0000 (23:34 +0000)
committerÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 23 Sep 2009 23:34:43 +0000 (23:34 +0000)
app/controllers/amf_controller.rb

index 0439ed7..86ca3f5 100644 (file)
@@ -883,7 +883,7 @@ class AmfController < ApplicationController
   end
 
   def getlocales
-    Dir.glob("#{RAILS_ROOT}/config/potlatch/localised/*").collect { |f| File.basename(f) }
+    Dir.glob("#{RAILS_ROOT}/config/potlatch/locales/*").collect { |f| File.basename(f, ".yml") }
   end
   
   ##