mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
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:
parent
41aae48ad3
commit
1dc89ca465
2 changed files with 5 additions and 7 deletions
|
@ -956,12 +956,10 @@ class smtp_class
|
||||||
|
|
||||||
function smtp_class()
|
function smtp_class()
|
||||||
{
|
{
|
||||||
if (defined('DEBUG'))
|
// Always create a backtrace for admins to identify SMTP problems
|
||||||
{
|
|
||||||
$this->backtrace = true;
|
$this->backtrace = true;
|
||||||
$this->backtrace_log = array();
|
$this->backtrace_log = array();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add backtrace message for debugging
|
* Add backtrace message for debugging
|
||||||
|
@ -970,7 +968,7 @@ class smtp_class
|
||||||
{
|
{
|
||||||
if ($this->backtrace)
|
if ($this->backtrace)
|
||||||
{
|
{
|
||||||
$this->backtrace_log[] = htmlspecialchars($message, ENT_COMPAT, 'UTF-8');
|
$this->backtrace_log[] = utf8_htmlspecialchars($message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -908,7 +908,7 @@ class install_install extends module
|
||||||
$config_data .= "\$acm_type = 'file';\n";
|
$config_data .= "\$acm_type = 'file';\n";
|
||||||
$config_data .= "\$load_extensions = '$load_extensions';\n\n";
|
$config_data .= "\$load_extensions = '$load_extensions';\n\n";
|
||||||
$config_data .= "@define('PHPBB_INSTALLED', true);\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 .= "// @define('DEBUG_EXTRA', true);\n";
|
||||||
$config_data .= '?' . '>'; // Done this to prevent highlighting editors getting confused!
|
$config_data .= '?' . '>'; // Done this to prevent highlighting editors getting confused!
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue