From dfeeae38a9feaa30f5dec50a09476c03f431a196 Mon Sep 17 00:00:00 2001 From: cweiske Date: Sat, 3 Oct 2009 23:25:07 +0000 Subject: get rid of headers-already-sent-errors when running unit tests on cli git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@390 b3834d28-1941-0410-a4f8-b48e95affb8f --- src/SemanticScuttle/constants.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/SemanticScuttle/constants.php') diff --git a/src/SemanticScuttle/constants.php b/src/SemanticScuttle/constants.php index e37f41c..95c4384 100644 --- a/src/SemanticScuttle/constants.php +++ b/src/SemanticScuttle/constants.php @@ -11,10 +11,7 @@ if(isset($GLOBALS['debugMode'])) { } // Determine the base URL as ROOT -if (!isset($_SERVER['HTTP_HOST'])) { - //not set in unit tests - define('ROOT', 'http://localhost/'); -} else if (!isset($GLOBALS['root'])) { +if (!isset($GLOBALS['root'])) { $pieces = explode('/', $_SERVER['SCRIPT_NAME']); $rootTmp = '/'; -- cgit v1.2.3-54-g00ecf