From 395bf25ca435c80541f02e5e62587eeef47294dc Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel
Date: Wed, 20 May 2009 12:37:40 +0200 Subject: [PATCH] Ensure the application "koward" gets pushed when called from the CLI. --- koward/lib/Koward/Cli.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/koward/lib/Koward/Cli.php b/koward/lib/Koward/Cli.php index 81aa3ef30..bf426a034 100644 --- a/koward/lib/Koward/Cli.php +++ b/koward/lib/Koward/Cli.php @@ -68,6 +68,13 @@ class Koward_Cli extends Horde_Controller_Request_Base */ $this->_path = $registry->get('webroot', 'koward') . '/' . $args[0]; + if (is_a(($pushed = $registry->pushApp('koward', false)), 'PEAR_Error')) { + if ($pushed->getCode() == 'permission_denied') { + echo 'Perission denied!'; + exit; + } + } + $this->_cmd_argv = array(); /* Authenticate the user if possible. */ -- 2.11.0