mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/12620] Use the right environment while installing
PHPBB3-12620
This commit is contained in:
parent
48950be82b
commit
93f61a4a7d
1 changed files with 13 additions and 1 deletions
|
@ -450,7 +450,19 @@ function phpbb_create_config_file_data($data, $dbms, $debug = false, $debug_cont
|
||||||
|
|
||||||
$config_data .= "\n@define('PHPBB_INSTALLED', true);\n";
|
$config_data .= "\n@define('PHPBB_INSTALLED', true);\n";
|
||||||
$config_data .= "// @define('PHPBB_DISPLAY_LOAD_TIME', true);\n";
|
$config_data .= "// @define('PHPBB_DISPLAY_LOAD_TIME', true);\n";
|
||||||
|
|
||||||
|
if ($debug_test)
|
||||||
|
{
|
||||||
$config_data .= "@define('PHPBB_ENVIRONMENT', 'test');\n";
|
$config_data .= "@define('PHPBB_ENVIRONMENT', 'test');\n";
|
||||||
|
}
|
||||||
|
else if ($debug)
|
||||||
|
{
|
||||||
|
$config_data .= "@define('PHPBB_ENVIRONMENT', 'development');\n";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$config_data .= "@define('PHPBB_ENVIRONMENT', 'production');\n";
|
||||||
|
}
|
||||||
|
|
||||||
if ($debug_container)
|
if ($debug_container)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue