Browse Source

broken unicode

pull/40/head
Savetheinternet 13 years ago
parent
commit
ea641d4335
  1. 2
      inc/display.php
  2. 4
      templates/themes/basic/theme.php

2
inc/display.php

@ -116,7 +116,7 @@
// Unescape HTML characters, to avoid splitting them in half
$body = html_entity_decode_utf8($body);
$body = substr($body, 0, $len) . (strlen($body) > $len ? '' : '');
$body = substr($body, 0, $len) . (strlen($body) > $len ? '…' : '');
// Re-escape the characters.
return '<em>' . utf8tohtml($body) . '</em>';

4
templates/themes/basic/theme.php

@ -50,7 +50,7 @@
:
'<em>no subject</em>'
) .
'<span class="unimportant"> by ' .
'<span class="unimportant"> &mdash; by ' .
$news['name'] .
' at ' .
date($config['post_date'], $news['time']) .
@ -67,4 +67,4 @@
}
};
?>
?>

Loading…
Cancel
Save