From: Michael M Slusarz Date: Wed, 12 Jan 2011 19:03:44 +0000 (-0700) Subject: Bug #9507: Only do language change callback to authenticated apps X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f974d54faad1a8908ccb9259a7b90a2354993465;p=horde.git Bug #9507: Only do language change callback to authenticated apps --- diff --git a/horde/lib/Prefs/Ui.php b/horde/lib/Prefs/Ui.php index 2467036e6..a3ab318d1 100644 --- a/horde/lib/Prefs/Ui.php +++ b/horde/lib/Prefs/Ui.php @@ -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'); } }