Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
gvollbach committed Sep 26, 2023
1 parent 256e04e commit dab74ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Modules/Forum/classes/class.ilForumExportGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public function exportHTML(): void
);
} else {
if($this->ref_id > 0) {
$obj_id = $this->ilObjDataCache->lookupObjId($this->ref_id);
$obj_id = $this->ilObjDataCache->lookupObjId($this->ref_id);
$topics = ilForum::getSortedThreadSubjects($obj_id);
if(count($topics) > 0) {
$thread_ids = array_keys($topics);
Expand Down
6 changes: 3 additions & 3 deletions Modules/Forum/classes/class.ilObjForumGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -857,14 +857,14 @@ protected function renderThreadOverview(ilForumThreadObject $tbl, ilForum $frm,
$this->tpl->setContent($default_html . $modals);
}

protected function getThreadSortation() {
protected function getThreadSortation() : int {
if($this->http->wrapper()->query()->has('thread_sortation')){
$this->thread_sortation = $this->http->wrapper()->query()->retrieve('thread_sortation', $this->refinery->kindlyTo()->int());
}
return $this->thread_sortation;
}

protected function getThreadOffset() {
protected function getThreadOffset() : int {
$offset = 0;
if($this->http->wrapper()->query()->has('page')){
$offset = $this->http->wrapper()->query()->retrieve('page', $this->refinery->kindlyTo()->int());
Expand Down Expand Up @@ -1131,7 +1131,7 @@ protected function markModeratorPostInOverview(
) : Item {
$df = new \ILIAS\Data\Factory();
if ($this->objProperties->getMarkModeratorPosts() && ilForum::_isModerator($ref_id, $author_id)) {
$list_item = $list_item->withColor($df->color('#4c6586'));
$list_item = $list_item->withColor($df->color('#f3de2c'));
}
return $list_item;
}
Expand Down

0 comments on commit dab74ca

Please sign in to comment.