diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2012-02-10 01:30:41 -0500 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2012-02-10 01:30:41 -0500 |
commit | 082132648b87b57e147296b7139b3ec8202f8617 (patch) | |
tree | ca97cf913553fcd69fcae26be56317bd2cc85090 /tests/bootstrap.php | |
parent | 6582a84379d658f9dddbdb2705ea6bce74685c85 (diff) | |
parent | 9c2d73c3f9f29ec0bc5a33e0ad7166ed0cd008f9 (diff) | |
download | forums-082132648b87b57e147296b7139b3ec8202f8617.tar forums-082132648b87b57e147296b7139b3ec8202f8617.tar.gz forums-082132648b87b57e147296b7139b3ec8202f8617.tar.bz2 forums-082132648b87b57e147296b7139b3ec8202f8617.tar.xz forums-082132648b87b57e147296b7139b3ec8202f8617.zip |
Merge branch 'develop-olympus' into develop
* develop-olympus:
[ticket/10512] Call startup.php from tests/bootstrap.php
Diffstat (limited to 'tests/bootstrap.php')
-rw-r--r-- | tests/bootstrap.php | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/tests/bootstrap.php b/tests/bootstrap.php index bf946df381..302701e3b3 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -10,25 +10,9 @@ define('IN_PHPBB', true); $phpbb_root_path = 'phpBB/'; $phpEx = 'php'; -$table_prefix = 'phpbb_'; - -if (!defined('E_DEPRECATED')) -{ - define('E_DEPRECATED', 8192); -} -error_reporting(E_ALL & ~E_DEPRECATED); - -// If we are on PHP >= 6.0.0 we do not need some code -if (version_compare(PHP_VERSION, '6.0.0-dev', '>=')) -{ - define('STRIP', false); -} -else -{ - @set_magic_quotes_runtime(0); - define('STRIP', (get_magic_quotes_gpc()) ? true : false); -} +require_once $phpbb_root_path . 'includes/startup.php'; +$table_prefix = 'phpbb_'; require_once $phpbb_root_path . 'includes/constants.php'; require_once $phpbb_root_path . 'includes/class_loader.' . $phpEx; |