Skip to content
Snippets Groups Projects
Commit 820fbf49 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Some code review

parent b28d2eab
No related branches found
No related tags found
1 merge request!5Feature 5 2 0
......@@ -457,10 +457,10 @@ class OverviewController extends AbstractController {
}
// find all tags
$tagPid = $GLOBALS['TSFE']->id;
$currentPageId = $GLOBALS['TSFE']->id;
if ($this->settings['onlyNewsWithinThisPageSection']) {
/** @noinspection PhpUndefinedMethodInspection */
$tags = $this->tagRepository->findByPid($tagPid);
$tags = $this->tagRepository->findByPid($currentPageId);
} else {
$tags = $this->tagRepository->findAll();
}
......
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