Bug #26995 ยป linkvalidator-26995-cgl.diff
typo3/sysext/linkvalidator/classes/class.tx_linkvalidator_processor.php | ||
---|---|---|
public function getRootLineIsHidden($pageInfo){
|
||
$hidden = FALSE;
|
||
if($pageInfo['extendToSubpages'] == 1 && $pageInfo['hidden'] == 1){
|
||
if ($pageInfo['extendToSubpages'] == 1 && $pageInfo['hidden'] == 1){
|
||
$hidden = TRUE;
|
||
}
|
||
else{
|
||
if($pageInfo['pid'] > 0) {
|
||
} else {
|
||
if ($pageInfo['pid'] > 0) {
|
||
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
|
||
'uid,title,hidden,extendToSubpages',
|
||
'pages',
|
typo3/sysext/linkvalidator/classes/linktype/class.tx_linkvalidator_linktype_external.php | ||
---|---|---|
$parsedUrl['user'] . (isset($parsedUrl['pass']) ? ':' . $parsedUrl['pass'] : '')
|
||
: '') . $parsedUrl['host'] . (
|
||
isset($parsedUrl['port']) ? ':' . $parsedUrl['port'] : '') . $location[1];
|
||
}
|
||
else {
|
||
} else {
|
||
$newUrl = $location[1];
|
||
}
|
||
if ($lastUrl === $newUrl) break 2;
|
||
} else break 2;
|
||
if ($lastUrl === $newUrl) {
|
||
break 2;
|
||
}
|
||
} else {
|
||
break 2;
|
||
}
|
||
}
|
||
}
|
||
typo3/sysext/linkvalidator/classes/tasks/class.tx_linkvalidator_tasks_validator.php | ||
---|---|---|
$processor = t3lib_div::makeInstance('tx_linkvalidator_Processor');
|
||
$pageRow = $GLOBALS['TYPO3_DB']->exec_SELECTgetSingleRow('*', 'pages', 'uid=' . $page);
|
||
$rootLineHidden = $processor->getRootLineIsHidden($pageRow);
|
||
if(!$rootLineHidden || $modTS['checkhidden']==1) {
|
||
if (!$rootLineHidden || $modTS['checkhidden']==1) {
|
||
$pageIds = $processor->extGetTreeList($page, $this->depth, 0, '1=1', $modTS['checkhidden']);
|
||
if($pageRow['hidden'] == 0 || $modTS['checkhidden']==1){
|
||
if ($pageRow['hidden'] == 0 || $modTS['checkhidden']==1) {
|
||
$pageIds .= $page;
|
||
}
|
||
typo3/sysext/linkvalidator/modfuncreport/class.tx_linkvalidator_modfuncreport.php | ||
---|---|---|
items : [
|
||
{
|
||
autoHeight: true,
|
||
title: TYPO3.lang.Report,
|
||
title: TYPO3.lang.Report,
|
||
html: ' . json_encode($this->flush(TRUE)) . '
|
||
},
|
||
' . $panelCheck . '
|
||
... | ... | |
}
|
||
}
|
||
$rootLineHidden = $this->processor->getRootLineIsHidden($this->pObj->pageinfo);
|
||
if(!$rootLineHidden || $this->modTS['checkhidden']==1) {
|
||
if (!$rootLineHidden || $this->modTS['checkhidden']==1) {
|
||
// get children pages
|
||
$pageList = $this->processor->extGetTreeList(
|
||
$this->pObj->id,
|
||
... | ... | |
);
|
||
if($this->pObj->pageinfo['hidden'] == 0 || $this->modTS['checkhidden']==1){
|
||
if ($this->pObj->pageinfo['hidden'] == 0 || $this->modTS['checkhidden']==1){
|
||
$pageList .= $this->pObj->id;
|
||
}
|
||
... | ... | |
$keyOpt = array_keys($this->checkOpt);
|
||
}
|
||
$rootLineHidden = $this->processor->getRootLineIsHidden($this->pObj->pageinfo);
|
||
if(!$rootLineHidden || $this->modTS['checkhidden']==1) {
|
||
if (!$rootLineHidden || $this->modTS['checkhidden']==1) {
|
||
$pageList = $this->processor->extGetTreeList(
|
||
$this->pObj->id,
|
||
$this->searchLevel,
|
||
... | ... | |
$GLOBALS['BE_USER']->getPagePermsClause(1),
|
||
$this->modTS['checkhidden']
|
||
);
|
||
if($this->pObj->pageinfo['hidden'] == 0 || $this->modTS['checkhidden']==1){
|
||
if ($this->pObj->pageinfo['hidden'] == 0 || $this->modTS['checkhidden']==1){
|
||
$pageList .= $this->pObj->id;
|
||
}
|
||
... | ... | |
$brokenLinksMarker = $this->getNoBrokenLinkMessage($brokenLinksMarker);
|
||
}
|
||
}
|
||
}
|
||
else{
|
||
} else {
|
||
$brokenLinksMarker = $this->getNoBrokenLinkMessage($brokenLinksMarker);
|
||
}
|