cope with updates too

git-svn-id: file:///svn/phpbb/trunk@8103 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2007-09-23 11:10:17 +00:00
parent ee9263b0ba
commit 6e2d395da9

View file

@ -218,7 +218,9 @@ $auth = new auth();
$cache = new cache(); $cache = new cache();
$template = new template(); $template = new template();
// Add own hook handler // Add own hook handler, if present. :o
if (file_exists($phpbb_root_path . 'includes/hooks/index.' . $phpEx))
{
require($phpbb_root_path . 'includes/hooks/index.' . $phpEx); 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'))); $phpbb_hook = new phpbb_hook(array('exit_handler', 'phpbb_user_session_handler', 'append_sid', array('template', 'display')));
@ -226,6 +228,11 @@ foreach ($cache->obtain_hooks() as $hook)
{ {
@include($phpbb_root_path . 'includes/hooks/' . $hook . '.' . $phpEx); @include($phpbb_root_path . 'includes/hooks/' . $hook . '.' . $phpEx);
} }
}
else
{
$phpbb_hook = false;
}
// Set some standard variables we want to force // Set some standard variables we want to force
$config = array( $config = array(