From 1703ac20a08cad0486c5e206de00848c8309b2a2 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 4 Dec 2014 17:40:29 -0700 Subject: [PATCH] This error message can leak to user notifications, so translate it --- framework/Core/lib/Horde/Registry.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index 9f817f22805..8213afcb1c5 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -1528,7 +1528,14 @@ public function pushApp($app, array $options = array()) /* Bail out if application is not present or inactive. */ if ($this->isInactive($app)) { - throw new Horde_Exception_PushApp($app . ' is not activated.', self::NOT_ACTIVE, $app); + throw new Horde_Exception_PushApp( + sprintf( + Horde_Core_Translation::t("%s is not activated."), + $this->applications[$app]['name'] + ), + self::NOT_ACTIVE, + $app + ); } $checkPerms = ((!isset($options['check_perms']) ||