Skip to content

Commit

Permalink
This error message can leak to user notifications, so translate it
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Dec 5, 2014
1 parent 81e0af3 commit 1703ac2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion framework/Core/lib/Horde/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']) ||
Expand Down

0 comments on commit 1703ac2

Please sign in to comment.