lang charset proposel for serendipity_die()

References #236
This commit is contained in:
Ian 2014-12-07 18:26:01 +01:00
parent d91b86486b
commit 7e46e92e1b

View File

@ -382,10 +382,11 @@ function serendipity_getCoreVersion($version) {
* @return null
*/
function serendipity_die($html) {
$charset = (LANG_CHARSET == 'LANG_CHARSET') ? 'UTF-8' : LANG_CHARSET;
die(
'<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=' . LANG_CHARSET . '">
<meta http-equiv="Content-Type" content="text/html; charset=' . $charset . '">
</head>
<body>' . $html . '</body>
</html>');