allow new installations...

git-svn-id: file:///svn/phpbb/trunk@8102 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2007-09-23 11:04:50 +00:00
parent 6ea4a146af
commit ee9263b0ba
3 changed files with 12 additions and 3 deletions

View file

@ -30,7 +30,7 @@
<th>{L_SOFTWARE}</th>
<th>{L_VERSION}</th>
<th>{L_AUTHOR}</th>
<th>{L_CONVERT_OPTIONS}</th>
<th>{L_OPTIONS}</th>
</tr>
</thead>
<tbody>

View file

@ -196,7 +196,7 @@ $phpbb_hook = new phpbb_hook(array('exit_handler', 'phpbb_user_session_handler',
foreach ($cache->obtain_hooks() as $hook)
{
include($phpbb_root_path . 'includes/hooks/' . $hook . '.' . $phpEx);
@include($phpbb_root_path . 'includes/hooks/' . $hook . '.' . $phpEx);
}
?>

View file

@ -211,13 +211,22 @@ $mode = request_var('mode', 'overview');
$sub = request_var('sub', '');
// Set PHP error handler to ours
set_error_handler('msg_handler');
set_error_handler(defined('PHPBB_MSG_HANDLER') ? PHPBB_MSG_HANDLER : 'msg_handler');
$user = new user();
$auth = new auth();
$cache = new cache();
$template = new template();
// 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)
{
@include($phpbb_root_path . 'includes/hooks/' . $hook . '.' . $phpEx);
}
// Set some standard variables we want to force
$config = array(
'load_tplcompile' => '1'