Attempt to unbreak Potlatch.
authorTom Hughes <tom@compton.nu>
Thu, 15 Oct 2009 07:40:47 +0000 (07:40 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 15 Oct 2009 07:40:47 +0000 (07:40 +0000)
app/controllers/amf_controller.rb

index 64abdb25785116632dab53bcdf2f8ba326a7551d..7df237de87e245fa4a15ef24a8c46967fdbb7527 100644 (file)
@@ -249,7 +249,7 @@ class AmfController < ApplicationController
     en = YAML::load(File.open("#{RAILS_ROOT}/config/potlatch/locales/en.yml"))["en"]
 
     if lang == 'en'
-      return [real_lang, en]
+      return [loaded_lang, en]
     else
       # Use English as a fallback
       begin