Bug #9507: Only do language change callback to authenticated apps
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 12 Jan 2011 19:03:44 +0000 (12:03 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 12 Jan 2011 19:03:57 +0000 (12:03 -0700)
horde/lib/Prefs/Ui.php

index 2467036..a3ab318 100644 (file)
@@ -171,7 +171,8 @@ class Horde_Prefs_Ui
         if ($prefs->isDirty('language')) {
             $registry->setLanguageEnvironment($prefs->getValue('language'));
             foreach ($registry->listApps() as $app) {
-                if ($registry->hasAppMethod($app, 'changeLanguage')) {
+                if ($registry->hasAppMethod($app, 'changeLanguage') &&
+                    $registry->isAuthenticated(array('app' => $app, 'notransparent' => true))) {
                     $registry->callAppMethod($app, 'changeLanguage');
                 }
             }