This commit is contained in:
2019-03-06 09:43:45 +01:00
parent 110bb31616
commit 47524fec34
6 changed files with 47 additions and 9 deletions

View File

@ -20,6 +20,7 @@ class Tags extends Tag {
$url = "?tag=" . $tag->getId();
if(isset($_GET["term"])) $url .= "&term=" . $_GET["term"];
if(isset($_GET["category"])) $url .= "&category=" . $_GET["category"];
if(isset($_GET["recent"])) $url .= "&recent=" . $_GET["recent"];
$res->setAttribute("href", "/search/" . $url);
$classes = "tag";
if(isset($_GET["tag"]) && $tag->getId() == $_GET["tag"]) $classes .= " active";

View File

@ -245,7 +245,7 @@ class Post {
$content = $post->getContent();
$category = $post->getCategory()->getId();
$author = $post->getAuthor()->getId();
$dt = (new DateTime())->format("d/m/Y h:i:s");
$dt = (new DateTime())->format("d/m/Y");
$pdo = Functions::connect();