From 46d05567396378da8bd2c998ff5983a1222089de Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 13 Oct 2010 02:47:47 +0200 Subject: [PATCH] Pass dictionary from init(). --- framework/Cli/lib/Horde/Cli.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); -- 2.11.0