diff --git a/phpBB/admin/admin_styles.php b/phpBB/admin/admin_styles.php index f658d982ac..b3d68a714c 100644 --- a/phpBB/admin/admin_styles.php +++ b/phpBB/admin/admin_styles.php @@ -39,6 +39,8 @@ if( !empty($setmodules) ) // Check if the user has cancled a confirmation message. // $phpbb_root_path = "./../"; +require($phpbb_root_path . 'extension.inc'); +require('./pagestart.' . $phpEx); $confirm = ( isset($HTTP_POST_VARS['confirm']) ) ? TRUE : FALSE; $cancel = ( isset($HTTP_POST_VARS['cancel']) ) ? TRUE : FALSE; @@ -46,8 +48,6 @@ $cancel = ( isset($HTTP_POST_VARS['cancel']) ) ? TRUE : FALSE; if (empty($HTTP_POST_VARS['send_file'])) { $no_page_header = ( $cancel ) ? TRUE : FALSE; - require($phpbb_root_path . 'extension.inc'); - require('./pagestart.' . $phpEx); } if ($cancel)