Disable DEBUG by default, enable backtrace by default

git-svn-id: file:///svn/phpbb/trunk@7631 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2007-05-18 14:33:18 +00:00
parent 41aae48ad3
commit 1dc89ca465
2 changed files with 5 additions and 7 deletions

View file

@ -956,11 +956,9 @@ class smtp_class
function smtp_class()
{
if (defined('DEBUG'))
{
$this->backtrace = true;
$this->backtrace_log = array();
}
// Always create a backtrace for admins to identify SMTP problems
$this->backtrace = true;
$this->backtrace_log = array();
}
/**
@ -970,7 +968,7 @@ class smtp_class
{
if ($this->backtrace)
{
$this->backtrace_log[] = htmlspecialchars($message, ENT_COMPAT, 'UTF-8');
$this->backtrace_log[] = utf8_htmlspecialchars($message);
}
}

View file

@ -908,7 +908,7 @@ class install_install extends module
$config_data .= "\$acm_type = 'file';\n";
$config_data .= "\$load_extensions = '$load_extensions';\n\n";
$config_data .= "@define('PHPBB_INSTALLED', true);\n";
$config_data .= "@define('DEBUG', true);\n"; // @todo Comment out when final
$config_data .= "// @define('DEBUG', true);\n";
$config_data .= "// @define('DEBUG_EXTRA', true);\n";
$config_data .= '?' . '>'; // Done this to prevent highlighting editors getting confused!