@@ -14,7 +17,7 @@
class="form-control"
id="title"
name="title"
- value="=($this->get('rank')) ? $this->escape($this->get('rank')->getTitle()) : '' ?>"
+ value="=($rank) ? $this->escape($rank->getTitle()) : '' ?>"
required />
@@ -28,7 +31,7 @@ class="form-control"
id="posts"
name="posts"
min="0"
- value="=($this->get('rank')) ? $this->escape($this->get('rank')->getPosts()) : '' ?>"
+ value="=($rank) ? $this->escape($rank->getPosts()) : '' ?>"
required />
diff --git a/application/modules/forum/views/edittopic/index.php b/application/modules/forum/views/edittopic/index.php
index c872bea9b..b58416290 100644
--- a/application/modules/forum/views/edittopic/index.php
+++ b/application/modules/forum/views/edittopic/index.php
@@ -10,8 +10,14 @@
get('forumItems');
+/** @var int[] $editTopicItems */
$editTopicItems = $this->get('editTopicItems');
+/**
+ * @param ForumItem $item
+ * @param View $obj
+ * @param int|null $i
+ */
function rec(ForumItem $item, View $obj, ?int $i)
{
$subItems = $item->getSubItems();
diff --git a/application/modules/forum/views/index/index.php b/application/modules/forum/views/index/index.php
index 95b9a3452..a4c446309 100644
--- a/application/modules/forum/views/index/index.php
+++ b/application/modules/forum/views/index/index.php
@@ -23,6 +23,14 @@
/** @var array $onlineUsersHighestRankedGroup */
$onlineUsersHighestRankedGroup = $this->get('onlineUsersHighestRankedGroup');
+/** @var \Modules\User\Models\User $registNewUser */
+$registNewUser = $this->get('registNewUser');
+
+/**
+ * @param ForumItem $item
+ * @param View $obj
+ * @param int|null $i
+ */
function rec(ForumItem $item, View $obj, ?int $i)
{
$DESCPostorder = $obj->get('DESCPostorder');
@@ -190,7 +198,9 @@ function rec(ForumItem $item, View $obj, ?int $i)
getPrefixes() != '') : ?>
getPrefixes()); ?>
@@ -69,7 +69,7 @@ class="form-control"
-
@@ -262,7 +265,7 @@
=$this->getTrans('lockPost') ?>
- =$this->get('pagination')->getHtml($this, ['action' => 'index', 'topicid' => $this->getRequest()->getParam('topicid')]) ?>
+ =$pagination->getHtml($this, ['action' => 'index', 'topicid' => $this->getRequest()->getParam('topicid')]) ?>
diff --git a/application/modules/forum/views/showtopics/index.php b/application/modules/forum/views/showtopics/index.php
index 6ffcd25a5..bad981c0a 100644
--- a/application/modules/forum/views/showtopics/index.php
+++ b/application/modules/forum/views/showtopics/index.php
@@ -21,8 +21,13 @@
if ($this->getUser()) {
$adminAccess = $this->getUser()->isAdmin();
}
+/** @var bool $DESCPostorder */
$DESCPostorder = $this->get('DESCPostorder');
+/** @var int $postsPerPage */
$postsPerPage = $this->get('postsPerPage');
+
+/** @var \Ilch\Pagination $pagination */
+$pagination = $this->get('pagination');
?>