Merge pull request #520 from rabuzarus/20180206_-_membersince_frio_support

membersince: fix utf-8 encoding issues
This commit is contained in:
Hypolite Petovan 2018-02-07 11:05:59 -05:00 committed by GitHub
commit 29cf1539a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ function membersince_display(&$a, &$b)
if (current_theme() == 'frio') {
// Works in Frio.
$doc = new DOMDocument();
$doc->loadHTML($b);
$doc->loadHTML(mb_convert_encoding($b, 'HTML-ENTITIES', 'UTF-8'));
$elm = $doc->getElementById('aprofile-fullname');