Fix app initialization.
authorJan Schneider <jan@horde.org>
Mon, 13 Sep 2010 12:36:00 +0000 (14:36 +0200)
committerJan Schneider <jan@horde.org>
Mon, 13 Sep 2010 13:35:09 +0000 (15:35 +0200)
mnemo/themes/categoryCSS.php
nag/themes/categoryCSS.php

index 86e21dc..baffc29 100644 (file)
@@ -1,8 +1,6 @@
 <?php
 /**
- * $Horde: mnemo/themes/categoryCSS.php,v 1.3 2009/12/04 17:42:25 jan Exp $
- *
- * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
+ * Copyright 2008-2010 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
  * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
@@ -10,10 +8,8 @@
  * @author Chuck Hagenbuch <chuck@horde.org>
  */
 
-@define('AUTH_HANDLER', true);
-@define('MNEMO_BASE', dirname(__FILE__) . '/..');
-require_once MNEMO_BASE . '/lib/Application.php';
-require_once 'Horde/Image.php';
+require_once dirname(__FILE__) . '/../lib/Application.php';
+Horde_Registry::appInit('nag');
 
 header('Content-Type: text/css');
 
index 0afa812..baffc29 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Copyright 1999-2010 The Horde Project (http://www.horde.org/)
+ * Copyright 2008-2010 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
  * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.