start the session when we are in http unittest mode

This commit is contained in:
Christian Weiske 2011-04-18 19:16:18 +02:00
parent b937d6ee42
commit f3fdb6ca14

View file

@ -104,7 +104,7 @@ T_bind_textdomain_codeset($domain, 'UTF-8');
T_textdomain($domain); T_textdomain($domain);
// 4 // Session // 4 // Session
if (!defined('UNIT_TEST_MODE')) { if (!defined('UNIT_TEST_MODE') || defined('HTTP_UNIT_TEST_MODE')) {
session_start(); session_start();
if ($GLOBALS['enableVoting']) { if ($GLOBALS['enableVoting']) {
if (isset($_SESSION['lastUrl'])) { if (isset($_SESSION['lastUrl'])) {