summaryrefslogtreecommitdiff
path: root/src/application/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/application/views')
-rw-r--r--src/application/views/form_login.php2
-rw-r--r--src/application/views/view_user.php2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/application/views/form_login.php b/src/application/views/form_login.php
index 87ee516..5fa79ad 100644
--- a/src/application/views/form_login.php
+++ b/src/application/views/form_login.php
@@ -38,12 +38,14 @@ if (($_formError = RequestUtils::getAndClearFormError("login")) !== null) {
<a class="btn btn-link" href="?_action=pwreset"><?= __("I forgot my password") ?></a>
</div>
+<?php if (REGISTRATION_ENABLED): ?>
<div class="form-group">
<?= __("Don't have an account? %link%Register now%/link%", [
"link" => '<a href="?_action=register">',
"/link" => '</a>',
]) ?>
</div>
+<?php endif; ?>
</form>
</div>
<div class="col-md-4"></div>
diff --git a/src/application/views/view_user.php b/src/application/views/view_user.php
index 5c89411..a38096f 100644
--- a/src/application/views/view_user.php
+++ b/src/application/views/view_user.php
@@ -56,7 +56,7 @@ $emailPending = $isOwnProfile && $user->pendingEmail !== null;
<?php if ($hasAttachments): ?>
<span class="badge"><span class="glyphicon glyphicon-paperclip"></span></span>
<?php endif; ?>
- <?= htmlentities(StringUtils::truncate(strip_tags(renderPost($post->content)), 100)) ?><br>
+ <?= htmlentities(html_entity_decode(StringUtils::truncate(strip_tags(renderPost($post->content)), 100))) ?><br>
<span class="text-muted"><?= __("posted on %post_date% in %topic%", [
"post_date" => '<span class="_time">' . htmlentities($post->postDate->format("c")) . '</span>',
"topic" => '<em>' .