From: Michael M Slusarz Date: Wed, 10 Mar 2010 06:29:25 +0000 (-0700) Subject: Allow test script to run even if Horde is not fully configured X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=7bc982a49ee6a97f4cb4a9575b89965d57902311;p=horde.git Allow test script to run even if Horde is not fully configured --- 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