Fixed hardcoded post permalink syntax
This commit is contained in:
parent
8009c16f0c
commit
eebb862332
2 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ if ($masstag)
|
||||||
<img
|
<img
|
||||||
class="thumb"
|
class="thumb"
|
||||||
src="<?= \Chibi\Router::linkTo(['PostController', 'thumbView'], ['name' => $this->context->post->getName()]) ?>"
|
src="<?= \Chibi\Router::linkTo(['PostController', 'thumbView'], ['name' => $this->context->post->getName()]) ?>"
|
||||||
alt="@<?= $this->context->post->getId() ?>"/>
|
alt="<?= TextHelper::reprPost($this->context->post) ?>"/>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$x =
|
$x =
|
||||||
|
|
|
@ -262,7 +262,7 @@ $canEditAnything = count(array_filter($editPostPrivileges)) > 0;
|
||||||
<a href="<?= \Chibi\Router::linkTo(
|
<a href="<?= \Chibi\Router::linkTo(
|
||||||
['PostController', 'genericView'],
|
['PostController', 'genericView'],
|
||||||
['id' => $relatedPost->getId()]) ?>">
|
['id' => $relatedPost->getId()]) ?>">
|
||||||
@<?= $relatedPost->getId() ?>
|
<?= TextHelper::reprPost($relatedPost) ?>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
|
|
Loading…
Reference in a new issue