From 530d4b8ae525ba8b42132eb9a01ce8de12e915d4 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Fri, 21 May 2010 17:02:25 -0400 Subject: [PATCH] fix app init on opensearch page --- whups/opensearch.php | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/whups/opensearch.php b/whups/opensearch.php index 0c0f9659d..f53887508 100644 --- a/whups/opensearch.php +++ b/whups/opensearch.php @@ -7,19 +7,8 @@ * * @author Jan Schneider */ - -// Check for a prior definition of HORDE_BASE (perhaps by an -// auto_prepend_file definition for site customization). -if (!defined('HORDE_BASE')) { - @define('HORDE_BASE', dirname(__FILE__) . '/..'); -} - -// Load the Horde Framework core, and set up inclusion paths. -require_once HORDE_BASE . '/lib/core.php'; - -// Registry. -$registry = new Horde_Registry(); -$registry->pushApp('whups'); +require_once dirname(__FILE__) . '/lib/Application.php'; +Horde_Registry::appInit('whups'); // Url. $url = Horde::applicationUrl('', true); -- 2.11.0