From: Michael J. Rubinsky Date: Fri, 21 May 2010 21:02:25 +0000 (-0400) Subject: fix app init on opensearch page X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=530d4b8ae525ba8b42132eb9a01ce8de12e915d4;p=horde.git fix app init on opensearch page --- 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);