Revert "Reuse existing code"
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 9 Jul 2010 21:20:07 +0000 (15:20 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 9 Jul 2010 21:20:07 +0000 (15:20 -0600)
This reverts commit a78f6933f4a0d2f80e7a3952c15bbe8f436815ea.

framework/Core/lib/Horde/Registry.php

index c8b6151..3f2f07f 100644 (file)
@@ -2024,7 +2024,8 @@ class Horde_Registry
         $this->setAuthCredential($credentials, null, $app);
 
         /* Reload preferences for the new user. */
-        $this->_onAppSwitch($app);
+        $this->loadPrefs();
+        Horde_Nls::setLanguageEnvironment($GLOBALS['prefs']->getValue('language'), $app);
     }
 
     /**