From ef4e306d13c98f4cfa2100b78513451ec4ab3d99 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 4 Mar 2010 23:47:36 -0700 Subject: [PATCH] Fix Cli/Horde initialization --- framework/devtools/horde-check-themes.php | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/framework/devtools/horde-check-themes.php b/framework/devtools/horde-check-themes.php index 0ee34f019..ab0631abf 100755 --- a/framework/devtools/horde-check-themes.php +++ b/framework/devtools/horde-check-themes.php @@ -14,13 +14,8 @@ * @author Marko Djukic */ -/* CLI checks and environment setup first. */ -require_once 'Horde/Cli.php'; - -/* Make sure no one runs this from the web. */ -if (!Horde_Cli::runningFromCLI()) { - exit("Must be run from the command line\n"); -} +require_once dirname(__FILE__) . '/../lib/Application.php'; +Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true)); /* Get any options. */ $simple = false; @@ -48,12 +43,6 @@ if ($horde_base === null) { print_usage("You must specify the base path to Horde."); } -/* Set up CLI. */ -$cli = Horde_Cli::init(); - -$horde_authentication = 'none'; -require_once $horde_base . '/lib/base.php'; - /* Get the apps and start doing checks. */ $apps = $registry->listApps(array('hidden', 'notoolbar', 'active', 'admin')); -- 2.11.0