Better i18n support in usernames
rodzic
de1b5afbbb
commit
91ca65f9e8
|
@ -481,6 +481,7 @@
|
|||
// This creates a basic HTML page. This content appears when someone visits the root of your site.
|
||||
function home() {
|
||||
global $username, $server, $realName, $summary, $directories;
|
||||
$rawUsername = rawurldecode( $username );
|
||||
echo <<< HTML
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-GB">
|
||||
|
@ -523,7 +524,7 @@ echo <<< HTML
|
|||
</div>
|
||||
<address>
|
||||
<h1 class="p-name p-author">{$realName}</h1>
|
||||
<h2><a class="p-nickname u-url" rel="author" href="https://{$server}/{$username}">@{$username}@{$server}</a></h2>
|
||||
<h2><a class="p-nickname u-url" rel="author" href="https://{$server}/{$username}">@{$rawUsername}@{$server}</a></h2>
|
||||
</address>
|
||||
<p class="p-summary">{$summary}</p>
|
||||
<div class="about">
|
||||
|
|
Ładowanie…
Reference in New Issue