From f974d54faad1a8908ccb9259a7b90a2354993465 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 12 Jan 2011 12:03:44 -0700 Subject: [PATCH] Bug #9507: Only do language change callback to authenticated apps --- horde/lib/Prefs/Ui.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'); } } -- 2.11.0