Skip to content

Commit

Permalink
Fixed 'column "count" does not exist' in postgres.
Browse files Browse the repository at this point in the history
  • Loading branch information
parpalak committed May 10, 2024
1 parent 14ddf26 commit 9ad415d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _extensions/s2_blog/Controller/YearPageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ public function body(Request $request, HtmlTemplate $template): ?Response

$template->setLink('up', $this->blogUrlBuilder->main());
if ($year > $this->startYear) {
$pageTitle = '<a href="' . $this->blogUrlBuilder->year($year - 1) . '/">&larr;</a> ' . $pageTitle;
$template->setLink('prev', $this->blogUrlBuilder->year($year - 1) . '/');
$pageTitle = '<a href="' . $this->blogUrlBuilder->year($year - 1) . '">&larr;</a> ' . $pageTitle;
$template->setLink('prev', $this->blogUrlBuilder->year($year - 1));
}
if ($year < date('Y')) {
$pageTitle .= ' <a href="' . $this->blogUrlBuilder->year($year + 1) . '/">&rarr;</a>';
$template->setLink('next', $this->blogUrlBuilder->year($year + 1) . '/');
$pageTitle .= ' <a href="' . $this->blogUrlBuilder->year($year + 1) . '">&rarr;</a>';
$template->setLink('next', $this->blogUrlBuilder->year($year + 1));
}
$template->putInPlaceholder('title', $pageTitle);

Expand Down

0 comments on commit 9ad415d

Please sign in to comment.