From 41c32ec5cb045ebb975ea3674c1c197e396c2b07 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 13 Sep 2010 14:36:00 +0200 Subject: [PATCH] Fix app initialization. --- mnemo/themes/categoryCSS.php | 10 +++------- nag/themes/categoryCSS.php | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/mnemo/themes/categoryCSS.php b/mnemo/themes/categoryCSS.php index 86e21dc0b..baffc29f4 100644 --- a/mnemo/themes/categoryCSS.php +++ b/mnemo/themes/categoryCSS.php @@ -1,8 +1,6 @@ */ -@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'); diff --git a/nag/themes/categoryCSS.php b/nag/themes/categoryCSS.php index 0afa81260..baffc29f4 100644 --- a/nag/themes/categoryCSS.php +++ b/nag/themes/categoryCSS.php @@ -1,6 +1,6 @@