mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-10 09:35:24 +02:00
[ticket/12831] simplified code, upd event block
https://tracker.phpbb.com/browse/PHPBB3-12831 PHPBB3-12831
This commit is contained in:
parent
8989f6f878
commit
7e4c3fde01
@ -5061,13 +5061,10 @@ function page_header($page_title = '', $display_online_list = false, $item_id =
|
|||||||
$vars = array('page_title', 'display_online_list', 'item_id', 'item', 'http_headers');
|
$vars = array('page_title', 'display_online_list', 'item_id', 'item', 'http_headers');
|
||||||
extract($phpbb_dispatcher->trigger_event('core.page_header_after', compact($vars)));
|
extract($phpbb_dispatcher->trigger_event('core.page_header_after', compact($vars)));
|
||||||
|
|
||||||
if (is_array($http_headers))
|
|
||||||
{
|
|
||||||
foreach ($http_headers as $hname => $hval)
|
foreach ($http_headers as $hname => $hval)
|
||||||
{
|
{
|
||||||
header((string) $hname.': '.(string) $hval);
|
header((string) $hname.': '.(string) $hval);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -128,13 +128,10 @@ function adm_page_header($page_title)
|
|||||||
$vars = array('page_title', 'http_headers');
|
$vars = array('page_title', 'http_headers');
|
||||||
extract($phpbb_dispatcher->trigger_event('core.adm_page_header_after', compact($vars)));
|
extract($phpbb_dispatcher->trigger_event('core.adm_page_header_after', compact($vars)));
|
||||||
|
|
||||||
if (is_array($http_headers))
|
|
||||||
{
|
|
||||||
foreach ($http_headers as $hname => $hval)
|
foreach ($http_headers as $hname => $hval)
|
||||||
{
|
{
|
||||||
header((string) $hname.': '.(string) $hval);
|
header((string) $hname.': '.(string) $hval);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user