1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +02:00

Stop stepping on E107_DBG_* constants in tests

\Helper\Unit::_beforeSuite() now sets E107_DEBUG_LEVEL so that
debug_handler.php sets the debug mode.

Also fixed E_NOTICE if E107_DEBUG_LEVEL is set beforehand
This commit is contained in:
Nick Liu
2020-01-17 15:42:57 +01:00
parent bcba1e065f
commit a49b532519
2 changed files with 2 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ if (strstr(e_MENU, "debug") || isset($_COOKIE['e107_debug_level']))
define('E107_DEBUG_LEVEL', $e107_debug_level);
}
}
else
elseif (!defined('E107_DEBUG_LEVEL'))
{
define('E107_DEBUG_LEVEL', 0);
}