[ticket/16719] Fix PHP notice/warning on installation

PHPBB3-16719
This commit is contained in:
rxu 2021-03-05 20:23:28 +07:00
parent 37c7e0a6d0
commit 3a21109f89
No known key found for this signature in database
GPG key ID: 955F0567380E586A

View file

@ -16,7 +16,10 @@
*/
define('IN_PHPBB', true);
define('IN_INSTALL', true);
define('PHPBB_ENVIRONMENT', 'production');
if (!defined('PHPBB_ENVIRONMENT'))
{
define('PHPBB_ENVIRONMENT', 'production');
}
$phpbb_root_path = '../';
$phpEx = substr(strrchr(__FILE__, '.'), 1);