From: Ben Klang Date: Tue, 18 May 2010 02:21:53 +0000 (-0400) Subject: Mnemo: Horde_Cli::singleton() doesn't exist anymore X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b96959c48253d07d01874e736726fb9595c0bee9;p=horde.git Mnemo: Horde_Cli::singleton() doesn't exist anymore --- diff --git a/mnemo/scripts/upgrades/convert_datatree_shares_to_sql.php b/mnemo/scripts/upgrades/convert_datatree_shares_to_sql.php index 9a197c5b2..15c2f504e 100755 --- a/mnemo/scripts/upgrades/convert_datatree_shares_to_sql.php +++ b/mnemo/scripts/upgrades/convert_datatree_shares_to_sql.php @@ -9,14 +9,15 @@ */ @define('AUTH_HANDLER', true); -@define('HORDE_BASE', dirname(__FILE__) . '/../../..'); +//@define('HORDE_BASE', dirname(__FILE__) . '/../../..'); +@define('HORDE_BASE', '/srv/vhost/users/bklang/sites/intranet.alkaloid.net'); /* Set up the CLI environment */ require_once HORDE_BASE . '/lib/core.php'; if (!Horde_Cli::runningFromCli()) { exit("Must be run from the command line\n"); } -$cli = &Horde_Cli::singleton(); +$cli = new Horde_Cli; $cli->init(); /* Grab what we need to steal the DB config */