mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
allow new installations...
git-svn-id: file:///svn/phpbb/trunk@8102 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
6ea4a146af
commit
ee9263b0ba
3 changed files with 12 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
?>
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue