Revision 291
Added by stefan almost 19 years ago
trunk/wb/admin/interface/header.html | ||
---|---|---|
4 | 4 |
<head> |
5 | 5 |
<title>{WEBSITE_TITLE} >> {TEXT_ADMINISTRATION} - {SECTION_NAME}</title> |
6 | 6 |
<link href="{INTERFACE_DIR}/stylesheet.css" rel="stylesheet" type="text/css" /> |
7 |
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
7 |
<meta http-equiv="content-type" content="text/html; charset={CHARSET}" />
|
|
8 | 8 |
<script language="javascript" type="text/javascript"> |
9 | 9 |
function confirm_link(message, url) { |
10 | 10 |
if(confirm(message)) location.href = url; |
trunk/wb/framework/class.admin.php | ||
---|---|---|
90 | 90 |
$header_template = new Template(ADMIN_PATH."/interface"); |
91 | 91 |
$header_template->set_file('page', 'header.html'); |
92 | 92 |
$header_template->set_block('page', 'header_block', 'header'); |
93 |
if(defined('DEFAULT_CHARSET')) { |
|
94 |
$charset=DEFAULT_CHARSET; |
|
95 |
} else { |
|
96 |
$charset='utf-8'; |
|
97 |
} |
|
93 | 98 |
$header_template->set_var( array( |
94 | 99 |
'SECTION_NAME' => $MENU[strtoupper($this->section_name)], |
95 | 100 |
'INTERFACE_DIR' => ADMIN_URL.'/interface', |
96 | 101 |
'BODY_TAGS' => $body_tags, |
97 | 102 |
'WEBSITE_TITLE' => ($title['value']), |
98 | 103 |
'TEXT_ADMINISTRATION' => $TEXT['ADMINISTRATION'], |
104 |
'CHARSET' => $charset, |
|
99 | 105 |
'VERSION' => VERSION |
100 | 106 |
) |
101 | 107 |
); |
Also available in: Unified diff
Character encoding setting also affects admin backend. Mentioned in ticket #102.