diff options
| author | Tristan Darricau <github@nicofuma.fr> | 2014-09-04 17:06:39 +0200 |
|---|---|---|
| committer | Tristan Darricau <github@nicofuma.fr> | 2014-11-20 19:01:23 +0100 |
| commit | b697273aaa53d9f9f4a3d4a53cc6267e906953cd (patch) | |
| tree | 8ab6ad17b6922fb8ec93b9e0cfbc8e44991ff471 /phpBB/common.php | |
| parent | 143dfa28c62bce5292c9840766f56d9f288980b5 (diff) | |
| download | forums-b697273aaa53d9f9f4a3d4a53cc6267e906953cd.tar forums-b697273aaa53d9f9f4a3d4a53cc6267e906953cd.tar.gz forums-b697273aaa53d9f9f4a3d4a53cc6267e906953cd.tar.bz2 forums-b697273aaa53d9f9f4a3d4a53cc6267e906953cd.tar.xz forums-b697273aaa53d9f9f4a3d4a53cc6267e906953cd.zip | |
[ticket/12620] Use PHPBB_ENVIRONMENT
PHPBB3-12620
Diffstat (limited to 'phpBB/common.php')
| -rw-r--r-- | phpBB/common.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/common.php b/phpBB/common.php index 2332802f30..85568ab10e 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -29,9 +29,9 @@ $phpbb_class_loader->register(); $phpbb_config_php_file = new \phpbb\config_php_file($phpbb_root_path, $phpEx); extract($phpbb_config_php_file->get_all()); -if (!defined('ENVIRONMENT')) +if (!defined('PHPBB_ENVIRONMENT')) { - @define('ENVIRONMENT', 'production'); + @define('PHPBB_ENVIRONMENT', 'production'); } if (!defined('PHPBB_INSTALLED')) @@ -96,7 +96,7 @@ set_error_handler(defined('PHPBB_MSG_HANDLER') ? PHPBB_MSG_HANDLER : 'msg_handle $phpbb_class_loader_ext = new \phpbb\class_loader('\\', "{$phpbb_root_path}ext/", $phpEx); $phpbb_class_loader_ext->register(); -if (ENVIRONMENT == 'debug' && !class_exists('Goutte\Client', true)) +if (PHPBB_ENVIRONMENT == 'debug' && !class_exists('Goutte\Client', true)) { trigger_error( 'Composer development dependencies have not been set up for the development environment yet, run ' . @@ -115,7 +115,7 @@ try catch (InvalidArgumentException $e) { trigger_error( - 'The requested environment ' . ENVIRONMENT . ' is not available.', + 'The requested environment ' . PHPBB_ENVIRONMENT . ' is not available.', E_USER_ERROR ); } |
