From 7bc982a49ee6a97f4cb4a9575b89965d57902311 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 9 Mar 2010 23:29:25 -0700 Subject: [PATCH] Allow test script to run even if Horde is not fully configured --- horde/test.php | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/horde/test.php b/horde/test.php index e32e36c42..1c7135903 100644 --- a/horde/test.php +++ b/horde/test.php @@ -20,7 +20,13 @@ */ require_once dirname(__FILE__) . '/lib/Application.php'; -Horde_Registry::appInit('horde', array('authentication' => 'none')); +try { + Horde_Registry::appInit('horde', array('authentication' => 'none')); + $is_init = true; +} catch (Horde_Exception $e) { + define('HORDE_TEMPLATES', dirname(__FILE__) . '/templates'); + $is_init = false; +} if (!empty($conf['testdisable'])) { echo '

Horde test scripts have been disabled in the local configuration.

'; @@ -109,16 +115,18 @@ if ($app == 'horde') {

Horde Applications

requiredFileCheck()) { ?>

PHP Sessions

-

PEAR

-- 2.11.0