aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_acp.php
diff options
context:
space:
mode:
authoromniError <omniError@github>2014-08-09 18:48:26 -0500
committeromniError <omniError@github>2014-08-09 18:48:26 -0500
commit7e4c3fde01b23f1c9d7d14d31d021b6a3d4a7def (patch)
treedcfcaaa12fd2cc15c201d7fc4a89a99c0334eb0e /phpBB/includes/functions_acp.php
parent8989f6f8783a9d53e7b4dd33c4f64997af5824e2 (diff)
downloadforums-7e4c3fde01b23f1c9d7d14d31d021b6a3d4a7def.tar
forums-7e4c3fde01b23f1c9d7d14d31d021b6a3d4a7def.tar.gz
forums-7e4c3fde01b23f1c9d7d14d31d021b6a3d4a7def.tar.bz2
forums-7e4c3fde01b23f1c9d7d14d31d021b6a3d4a7def.tar.xz
forums-7e4c3fde01b23f1c9d7d14d31d021b6a3d4a7def.zip
[ticket/12831] simplified code, upd event block
https://tracker.phpbb.com/browse/PHPBB3-12831 PHPBB3-12831
Diffstat (limited to 'phpBB/includes/functions_acp.php')
-rw-r--r--phpBB/includes/functions_acp.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/phpBB/includes/functions_acp.php b/phpBB/includes/functions_acp.php
index 8780f8e1eb..b40f14fa5c 100644
--- a/phpBB/includes/functions_acp.php
+++ b/phpBB/includes/functions_acp.php
@@ -121,19 +121,16 @@ function adm_page_header($page_title)
*
* @event core.adm_page_header_after
* @var string page_title Page title
- * @var array http_headers HTTP headers that should be set by phpbb
+ * @var array http_headers HTTP headers that should be set by phpbb
*
* @since 3.1.0-RC3
*/
$vars = array('page_title', 'http_headers');
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;