1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/12620] Add support of the environments for the ext routing files

PHPBB3-12620
This commit is contained in:
Tristan Darricau
2014-09-05 16:33:57 +02:00
parent 7cd0fd83b8
commit 014eed385b
7 changed files with 40 additions and 8 deletions

View File

@@ -21,6 +21,12 @@ if (php_sapi_name() != 'cli')
}
define('IN_PHPBB', true);
if (!defined('PHPBB_ENVIRONMENT'))
{
@define('PHPBB_ENVIRONMENT', 'production');
}
$phpbb_root_path = __DIR__ . '/../';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
require($phpbb_root_path . 'includes/startup.' . $phpEx);