summaryrefslogtreecommitdiff
path: root/www/phpbb/files/patch-admin::admin_styles.php
blob: 04f9c2048643383db18c5d3e22545c20baf0e5b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- admin/admin_styles.php.orig	Sun Dec 22 04:09:58 2002
+++ admin/admin_styles.php	Mon Jul  7 12:59:05 2003
@@ -39,16 +39,14 @@
 // Check if the user has cancled a confirmation message.
 //
 $phpbb_root_path = "./../";
+require($phpbb_root_path . 'extension.inc');
 
 $confirm = ( isset($HTTP_POST_VARS['confirm']) ) ? TRUE : FALSE;
 $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);
-}
+$no_page_header = (!empty($HTTP_POST_VARS['send_file']) || $cancel) ? TRUE : FALSE;
+
+require('./pagestart.' . $phpEx);
 
 if ($cancel)
 {