fix app init on opensearch page
authorMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 21 May 2010 21:02:25 +0000 (17:02 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 21 May 2010 21:02:25 +0000 (17:02 -0400)
whups/opensearch.php

index 0c0f965..f538875 100644 (file)
@@ -7,19 +7,8 @@
  *
  * @author Jan Schneider <jan@horde.org>
  */
-
-// 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);