Application.php defines this
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 17 May 2010 18:45:54 +0000 (14:45 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 17 May 2010 18:52:09 +0000 (14:52 -0400)
mnemo/index.php
mnemo/list.php
mnemo/memo.php
mnemo/search.php
mnemo/view.php

index 7a74103..c63b851 100644 (file)
@@ -11,4 +11,4 @@
  * @since   Mnemo 1.0
  * @package Mnemo
  */
-require MNEMO_BASE . '/list.php';
+require dirname(__FILE__) . '/list.php';
index df9a087..7acda20 100644 (file)
@@ -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');
 
index 7acc94f..9bab912 100644 (file)
@@ -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. */
index 1fde830..549cf77 100644 (file)
@@ -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");
index 5e5b438..49fd281 100644 (file)
@@ -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. */