Compare commits
2 commits
be54ce2c22
...
df5dbdf3ad
Author | SHA1 | Date | |
---|---|---|---|
df5dbdf3ad | |||
c0caceed7b |
3 changed files with 3 additions and 3 deletions
|
@ -168,7 +168,7 @@ $perms = $perms->checkMany([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Template::render('forum.forum', [
|
Template::render('forum.forum', [
|
||||||
'forum_breadcrumbs' => $forumCategories->getCategoryAncestry($categoryInfo),
|
'forum_breadcrumbs' => iterator_to_array($forumCategories->getCategoryAncestry($categoryInfo)),
|
||||||
'global_accent_colour' => $forumCategories->getCategoryColour($categoryInfo),
|
'global_accent_colour' => $forumCategories->getCategoryColour($categoryInfo),
|
||||||
'forum_info' => $categoryInfo,
|
'forum_info' => $categoryInfo,
|
||||||
'forum_children' => $children,
|
'forum_children' => $children,
|
||||||
|
|
|
@ -326,7 +326,7 @@ $perms = $perms->checkMany([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Template::render('forum.topic', [
|
Template::render('forum.topic', [
|
||||||
'topic_breadcrumbs' => $forumCategories->getCategoryAncestry($topicInfo),
|
'topic_breadcrumbs' => iterator_to_array($forumCategories->getCategoryAncestry($topicInfo)),
|
||||||
'global_accent_colour' => $forumCategories->getCategoryColour($topicInfo),
|
'global_accent_colour' => $forumCategories->getCategoryColour($topicInfo),
|
||||||
'topic_info' => $topicInfo,
|
'topic_info' => $topicInfo,
|
||||||
'category_info' => $categoryInfo,
|
'category_info' => $categoryInfo,
|
||||||
|
|
|
@ -147,7 +147,7 @@ class Bans {
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
|
|
||||||
$result = $stmt->getResult();
|
$result = $stmt->getResult();
|
||||||
return $result->next() ? new BanInfo($result) : null;
|
return $result->next() ? BanInfo::fromResult($result) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function createBan(
|
public function createBan(
|
||||||
|
|
Loading…
Reference in a new issue