From: Jan Schneider Date: Wed, 13 Oct 2010 00:47:47 +0000 (+0200) Subject: Pass dictionary from init(). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=46d05567396378da8bd2c998ff5983a1222089de;p=horde.git Pass dictionary from init(). --- diff --git a/framework/Cli/lib/Horde/Cli.php b/framework/Cli/lib/Horde/Cli.php index 219b089cc..74b3dfd10 100644 --- a/framework/Cli/lib/Horde/Cli.php +++ b/framework/Cli/lib/Horde/Cli.php @@ -454,13 +454,16 @@ class Horde_Cli * Either use the singleton() method to retrieve a Horde_Cli object after * calling init(), or don't call init() statically. * + * @param Horde_Translation $dict A translation handler implementing + * Horde_Translation. + * * @return Horde_Cli A Horde_Cli instance. */ - static public function init() + static public function init($dict = null) { /* Run constructor now because it requires $_SERVER['SERVER_NAME'] to * be empty if called with a CGI SAPI. */ - $cli = new self(); + $cli = new self($dict); @set_time_limit(0); ob_implicit_flush(true);