From 95fd1b79555f5452befe7c75719a99d36b45d831 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Wed, 26 May 2010 14:45:56 -0400 Subject: [PATCH] Hermes: update purge script --- hermes/scripts/purge.php | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/hermes/scripts/purge.php b/hermes/scripts/purge.php index b9011db2b..81680ba0e 100755 --- a/hermes/scripts/purge.php +++ b/hermes/scripts/purge.php @@ -1,9 +1,7 @@ #!/usr/bin/php */ -@define('HERMES_BASE', dirname(__FILE__) . '/..'); -@define('HORDE_BASE', dirname(__FILE__) . '/../..'); -require_once HORDE_BASE . '/lib/core.php'; - -// Registry -$registry = Horde_Registry::singleton(); -$registry->pushApp('hermes', false); - -// Hermes base libraries. -require_once HERMES_BASE . '/lib/Hermes.php'; -$hermes = &Hermes::getDriver(); +require_once dirname(__FILE__) . '/lib/Application.php'; +$hermes = Horde_Registry::appInit('hermes'); printf(_("Deleting data that was exported/billed more than %s days ago.\n"), $conf['time']['days_to_keep']); -$hermes->purge(); +$hermes->driver->purge(); -- 2.11.0