mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
can set MTT_DEBUG constant in config file
This commit is contained in:
parent
454eef2e07
commit
700e58e3dc
1 changed files with 4 additions and 4 deletions
|
|
@ -21,16 +21,16 @@ if (!defined('MTT_THEME')) {
|
|||
define('MTT_THEME_PATH', MTT_CONTENT_PATH. MTT_THEME. '/');
|
||||
|
||||
|
||||
if (getenv('MTT_ENABLE_DEBUG') == 'YES' && !defined('MTT_DEBUG')) {
|
||||
define('MTT_DEBUG', true);
|
||||
if (getenv('MTT_ENABLE_DEBUG') == 'YES' || (defined('MTT_DEBUG') && MTT_DEBUG) ) {
|
||||
if (!defined('MTT_DEBUG')) define('MTT_DEBUG', true);
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', '1');
|
||||
ini_set('log_errors', '1');
|
||||
}
|
||||
else if (!defined('MTT_DEBUG')) {
|
||||
else {
|
||||
//ini_set('display_errors', '0');
|
||||
//ini_set('log_errors', '1');
|
||||
define('MTT_DEBUG', false);
|
||||
if (!defined('MTT_DEBUG')) define('MTT_DEBUG', false);
|
||||
}
|
||||
|
||||
require_once(MTTINC. 'common.php');
|
||||
|
|
|
|||
Loading…
Reference in a new issue