Attempt to unbreak Potlatch.
[rails.git] / 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