Reuse existing code
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 9 Jul 2010 05:58:24 +0000 (23:58 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 9 Jul 2010 05:58:24 +0000 (23:58 -0600)
framework/Core/lib/Horde/Registry.php

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