Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions Classes/Controller/BrokenLinkListController.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,6 @@ class BrokenLinkListController extends AbstractBrofixController

protected string $viewMode = self::DEFAULT_VIEW_MODE_VALUE;

/**
* @var array<string,mixed>
*/
protected array $pageinfo = [];

/**
* @var string
*/
Expand Down Expand Up @@ -349,13 +344,15 @@ protected function initialize(ServerRequestInterface $request): void

if ($this->id !== 0) {
$this->resolveSiteLanguages($this->id);
$this->pageinfo = BackendUtility::readPageAccess($this->id, $backendUser->getPagePermsClause(Permission::PAGE_SHOW));
//$this->pageinfo = BackendUtility::readPageAccess($this->id, $backendUser->getPagePermsClause(Permission::PAGE_SHOW));
$this->configuration->loadPageTsConfig($this->id);

$this->pageRecord = BackendUtility::readPageAccess(
$this->id,
$this->getBackendUser()->getPagePermsClause(Permission::PAGE_SHOW)
);
) ?: [];
} else {
$this->pageRecord = [];
}
$this->getLanguageService()->includeLLFile('EXT:brofix/Resources/Private/Language/Module/locallang.xlf');
$this->getSettingsFromQueryParameters($request);
Expand Down Expand Up @@ -578,7 +575,7 @@ protected function initializeViewForBrokenLinks(): void
} else {
// todo: do we need to check rootline for hidden? Was already checked in checking for broken links!
// @extensionScannerIgnoreLine problem with getRootLineIsHidden
$rootLineHidden = $this->pagesRepository->getRootLineIsHidden($this->pageinfo);
$rootLineHidden = $this->pagesRepository->getRootLineIsHidden($this->pageRecord);
if ($rootLineHidden && !$this->configuration->isCheckHidden()) {
$shouldShow = false;
}
Expand Down