From: Michael M Slusarz Date: Fri, 5 Mar 2010 06:47:36 +0000 (-0700) Subject: Fix Cli/Horde initialization X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ef4e306d13c98f4cfa2100b78513451ec4ab3d99;p=horde.git Fix Cli/Horde initialization --- 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'));