Skip to content
Snippets Groups Projects
Commit 6b12e2fb authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fixes #3898

Closes #3898

Merge request studip/studip!2795
parent cb738f5f
No related branches found
No related tags found
No related merge requests found
...@@ -282,11 +282,18 @@ class Course_WikiController extends AuthenticatedController ...@@ -282,11 +282,18 @@ class Course_WikiController extends AuthenticatedController
public function allpages_action() public function allpages_action()
{ {
Navigation::activateItem('/course/wiki/allpages');
$this->pages = WikiPage::findBySQL( $this->pages = WikiPage::findBySQL(
"`range_id` = ? ORDER BY `name` ASC", "`range_id` = ? ORDER BY `name` ASC",
[$this->range->id] [$this->range->id]
); );
if (count($this->pages) === 0) {
$this->redirect($this->pageURL());
return;
}
Navigation::activateItem('/course/wiki/allpages');
if ($GLOBALS['perm']->have_studip_perm('tutor', $this->range->id)) { if ($GLOBALS['perm']->have_studip_perm('tutor', $this->range->id)) {
$actions = new ActionsWidget(); $actions = new ActionsWidget();
$actions->addLink( $actions->addLink(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment