diff options
author | David M <davidmj@users.sourceforge.net> | 2008-01-03 17:00:40 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2008-01-03 17:00:40 +0000 |
commit | 85055ac97fa57ca339924cef719115d85bdf6c2e (patch) | |
tree | 1e19230af2689c3837356c0f7947719c0cdf67ef /phpBB/common.php | |
parent | 0f26ffbadea13d97b841dfe56b21da7a5479000a (diff) | |
download | forums-85055ac97fa57ca339924cef719115d85bdf6c2e.tar forums-85055ac97fa57ca339924cef719115d85bdf6c2e.tar.gz forums-85055ac97fa57ca339924cef719115d85bdf6c2e.tar.bz2 forums-85055ac97fa57ca339924cef719115d85bdf6c2e.tar.xz forums-85055ac97fa57ca339924cef719115d85bdf6c2e.zip |
oh boy...
- Migrate code base to PHP 5.1+
git-svn-id: file:///svn/phpbb/trunk@8295 89ea8834-ac86-4346-8a33-228a782c2dd0
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 ebffd46228..3e880076bf 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -20,7 +20,7 @@ $starttime = explode(' ', microtime()); $starttime = $starttime[1] + $starttime[0]; // Report all errors, except notices -error_reporting(E_ALL ^ E_NOTICE); +error_reporting(E_ALL | E_STRICT); /* * Remove variables created by register_globals from the global scope @@ -199,7 +199,7 @@ set_error_handler(defined('PHPBB_MSG_HANDLER') ? PHPBB_MSG_HANDLER : 'msg_handle $user = new user(); $auth = new auth(); $template = new template(); -$cache = new cache(); +$cache = new acm(); $db = new $sql_db(); // Connect to DB @@ -209,13 +209,13 @@ $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false, defined(' unset($dbpasswd); // Grab global variables, re-cache if necessary -$config = $cache->obtain_config(); +$config = cache::obtain_config(); // Add own hook handler require($phpbb_root_path . 'includes/hooks/index.' . $phpEx); $phpbb_hook = new phpbb_hook(array('exit_handler', 'phpbb_user_session_handler', 'append_sid', array('template', 'display'))); -foreach ($cache->obtain_hooks() as $hook) +foreach (cache::obtain_hooks() as $hook) { @include($phpbb_root_path . 'includes/hooks/' . $hook . '.' . $phpEx); } |