From: Michael J. Rubinsky Date: Mon, 17 May 2010 18:45:54 +0000 (-0400) Subject: Application.php defines this X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=a6be9f9e0be27ba612bc61d0e74e83c54ce8bbf4;p=horde.git Application.php defines this --- diff --git a/mnemo/index.php b/mnemo/index.php index 7a74103fa..c63b85110 100644 --- a/mnemo/index.php +++ b/mnemo/index.php @@ -11,4 +11,4 @@ * @since Mnemo 1.0 * @package Mnemo */ -require MNEMO_BASE . '/list.php'; +require dirname(__FILE__) . '/list.php'; diff --git a/mnemo/list.php b/mnemo/list.php index df9a08799..7acda20d0 100644 --- a/mnemo/list.php +++ b/mnemo/list.php @@ -7,10 +7,9 @@ * See the enclosed file LICENSE for license information (ASL). If you * did not receive this file, see http://www.horde.org/licenses/asl.php. */ - -@define('MNEMO_BASE', dirname(__FILE__)); -require_once MNEMO_BASE . '/lib/Application.php'; +require_once dirname(__FILE__) . '/lib/Application.php'; Horde_Registry::appInit('mnemo'); + /* Get the current action ID. */ $actionID = Horde_Util::getFormData('actionID'); diff --git a/mnemo/memo.php b/mnemo/memo.php index 7acc94f18..9bab912c9 100644 --- a/mnemo/memo.php +++ b/mnemo/memo.php @@ -52,8 +52,7 @@ function showPassphrase($memo) return false; } -@define('MNEMO_BASE', dirname(__FILE__)); -require_once MNEMO_BASE . '/lib/Application.php'; +require_once dirname(__FILE__) . '/lib/Application.php'; Horde_Registry::appInit('mnemo'); /* Redirect to the notepad view if no action has been requested. */ diff --git a/mnemo/search.php b/mnemo/search.php index 1fde83014..549cf77bf 100644 --- a/mnemo/search.php +++ b/mnemo/search.php @@ -11,9 +11,7 @@ * @since Mnemo 1.0 * @package Mnemo */ - -@define('MNEMO_BASE', dirname(__FILE__)); -require_once MNEMO_BASE . '/lib/Application.php'; +require_once dirname(__FILE__) . '/lib/Application.php'; Horde_Registry::appInit('mnemo'); $title = _("Search"); diff --git a/mnemo/view.php b/mnemo/view.php index 5e5b43872..49fd2817d 100644 --- a/mnemo/view.php +++ b/mnemo/view.php @@ -7,9 +7,7 @@ * See the enclosed file LICENSE for license information (ASL). If you * did not receive this file, see http://www.horde.org/licenses/asl.php. */ - -@define('MNEMO_BASE', dirname(__FILE__)); -require_once MNEMO_BASE . '/lib/Application.php'; +require_once dirname(__FILE__) . '/lib/Application.php'; Horde_Registry::appInit('mnemo'); /* Check if a passphrase has been sent. */