Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
gvollbach committed Sep 20, 2023
1 parent b1ae8ec commit ad403c5
Showing 1 changed file with 0 additions and 45 deletions.
45 changes: 0 additions & 45 deletions Modules/Forum/classes/class.ilObjForumGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -761,51 +761,6 @@ public function getContent(): string
$threadsTemplate->setVariable('CONFIRMATION_GUI', $this->confirmation_gui_html);
}
// Create topic button
if (!$this->hideToolbar() && $this->access->checkAccess('add_thread', '', $this->object->getRefId())) {
$btn = $this->uiFactory->button()
->standard(
$this->lng->txt('forums_new_thread'),
$this->ctrl->getLinkTarget($this, 'createThread')
);
$this->toolbar->addStickyItem($btn);
}
// Mark all topics as read button
if ($this->confirmation_gui_html === '' && !$this->user->isAnonymous()) {
$this->toolbar->addButton(
$this->lng->txt('forums_mark_read'),
$this->ctrl->getLinkTarget($this, 'markAllRead')
);
$this->ctrl->clearParameters($this);
}
if (!$this->user->isAnonymous() && $this->access->checkAccess('write', '', $this->ref_id)) {
$this->lng->loadLanguageModule('cntr');
$this->toolbar->addComponent(
$this->uiFactory->button()->standard(
$this->lng->txt('cntr_text_media_editor'),
$this->ctrl->getLinkTargetByClass(ilForumPageGUI::class, 'edit')
)
);
}
if (ilForumPostDraft::isSavePostDraftAllowed()) {
$drafts = ilForumPostDraft::getThreadDraftData(
$this->user->getId(),
ilObjForum::lookupForumIdByObjId($this->object->getId())
);
if ($drafts !== []) {
$draftsTable = new ilForumDraftsTableGUI(
$this,
$cmd,
$this->access->checkAccess('add_thread', '', $this->object->getRefId())
);
$draftsTable->setData($drafts);
$threadsTemplate->setVariable('THREADS_DRAFTS_TABLE', $draftsTable->getHTML());
}
}
// Import information: Topic (variable $topicData) means frm object, not thread
$topicData = $frm->getOneTopic();
if ($topicData->getTopPk() > 0) {
Expand Down

0 comments on commit ad403c5

Please sign in to comment.