Fixed hardcoded post permalink syntax

This commit is contained in:
Marcin Kurczewski 2014-05-06 11:05:19 +02:00
parent 8009c16f0c
commit eebb862332
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ if ($masstag)
<img
class="thumb"
src="<?= \Chibi\Router::linkTo(['PostController', 'thumbView'], ['name' => $this->context->post->getName()]) ?>"
alt="@<?= $this->context->post->getId() ?>"/>
alt="<?= TextHelper::reprPost($this->context->post) ?>"/>
<?php
$x =

View file

@ -262,7 +262,7 @@ $canEditAnything = count(array_filter($editPostPrivileges)) > 0;
<a href="<?= \Chibi\Router::linkTo(
['PostController', 'genericView'],
['id' => $relatedPost->getId()]) ?>">
@<?= $relatedPost->getId() ?>
<?= TextHelper::reprPost($relatedPost) ?>
</a>
</li>
<?php endforeach ?>