* @since Mnemo 1.0
* @package Mnemo
*/
-
-@define('MNEMO_BASE', dirname(__FILE__));
-$mnemo_configured = (is_readable(MNEMO_BASE . '/config/conf.php') &&
- is_readable(MNEMO_BASE . '/config/prefs.php'));
-
-if (!$mnemo_configured) {
- require MNEMO_BASE . '/../lib/Test.php';
- Horde_Test::configFilesMissing('Mnemo', MNEMO_BASE, array('conf.php', 'prefs.php'));
-}
+require_once dirname(__FILE__) . '/lib/Application.php';
+Horde_Registry::appInit('mnemo');
require MNEMO_BASE . '/list.php';
*/
protected function _init()
{
- // Set the timezone variable.
- Horde_Nls::setTimeZone();
-
- // Create a share instance.
- $GLOBALS['mnemo_shares'] = Horde_Share::singleton($GLOBALS['registry']->getApp());
-
Mnemo::initialize();
}
*/
public static function initialize()
{
+ $GLOBALS['mnemo_shares'] = Horde_Share::singleton($GLOBALS['injector']->getInstance('Horde_Registry')->getApp());
+
// Update the preference for which notepads to display. If the
// user doesn't have any selected notepads for view then fall
// back to some available notepad.