Revision 1678
Added by Dietmar over 12 years ago
class.admin.php | ||
---|---|---|
90 | 90 |
// Print the admin header |
91 | 91 |
function print_header($body_tags = '') { |
92 | 92 |
// Get vars from the language file |
93 |
global $MENU; |
|
94 |
global $MESSAGE; |
|
95 |
global $TEXT; |
|
93 |
global $MENU, $MESSAGE, $TEXT; |
|
96 | 94 |
// Connect to database and get website title |
97 | 95 |
global $database; |
98 | 96 |
// $GLOBALS['FTAN'] = $this->getFTAN(); |
... | ... | |
101 | 99 |
$get_title = $database->query($sql); |
102 | 100 |
$title = $get_title->fetchRow(); |
103 | 101 |
// Setup template object, parse vars to it, then parse it |
104 |
$header_template = new Template(dirname($this->correct_theme_source('header.htt'))); |
|
102 |
$header_template = new Template(dirname($this->correct_theme_source('header.htt')),'keep');
|
|
105 | 103 |
$header_template->set_file('page', 'header.htt'); |
106 | 104 |
$header_template->set_block('page', 'header_block', 'header'); |
107 | 105 |
if(defined('DEFAULT_CHARSET')) { |
... | ... | |
236 | 234 |
} |
237 | 235 |
$footer_template->parse('show_list', 'show_block_list', true); |
238 | 236 |
|
239 |
if($bDebug) |
|
237 |
if(!$bDebug)
|
|
240 | 238 |
{ |
241 | 239 |
$footer_template->parse('include_list', ''); |
242 | 240 |
$footer_template->parse('show_list', ''); |
Also available in: Unified diff
! replace settings and default header