diff options
author | Yuriy Rusko <github@rusko.net> | 2011-06-14 06:11:35 -0400 |
---|---|---|
committer | Yuriy Rusko <github@rusko.net> | 2011-06-14 06:11:35 -0400 |
commit | f8eb15471488fe5f84669a9abbc2fc3a705903de (patch) | |
tree | ca8ffdfa9096a9a90c6f51771dfb663fb3eb6cee /phpBB/style.php | |
parent | 5223f7558b646628e0f040f7e25506eed8cbdfcf (diff) | |
download | forums-f8eb15471488fe5f84669a9abbc2fc3a705903de.tar forums-f8eb15471488fe5f84669a9abbc2fc3a705903de.tar.gz forums-f8eb15471488fe5f84669a9abbc2fc3a705903de.tar.bz2 forums-f8eb15471488fe5f84669a9abbc2fc3a705903de.tar.xz forums-f8eb15471488fe5f84669a9abbc2fc3a705903de.zip |
[ticket/10218] Moving global deregistration, etc. to startup.php
Because startup.php deletes all variables, the constants in
database_update are used to preserve settings at the top.
PHPBB3-10218
Diffstat (limited to 'phpBB/style.php')
-rw-r--r-- | phpBB/style.php | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/phpBB/style.php b/phpBB/style.php index f3e1b4c89e..916aa8ce5c 100644 --- a/phpBB/style.php +++ b/phpBB/style.php @@ -15,13 +15,7 @@ define('IN_PHPBB', true); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); -// Report all errors, except notices and deprecation messages -if (!defined('E_DEPRECATED')) -{ - define('E_DEPRECATED', 8192); -} -error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED); - +require($phpbb_root_path . 'includes/startup.' . $phpEx); require($phpbb_root_path . 'config.' . $phpEx); if (!defined('PHPBB_INSTALLED') || empty($dbms) || empty($acm_type)) @@ -29,11 +23,6 @@ if (!defined('PHPBB_INSTALLED') || empty($dbms) || empty($acm_type)) exit; } -if (version_compare(PHP_VERSION, '6.0.0-dev', '<')) -{ - @set_magic_quotes_runtime(0); -} - // Load Extensions if (!empty($load_extensions) && function_exists('dl')) { |