Project

General

Profile

Bug #10987 » linkvalidator_notvisible.patch

Joh. Feustel, 2010-11-19 23:36

View differences:

typo3/sysext/linkvalidator/modfunc1/locallang.xml (revision )
<label index="list.tableHead.linkmessage">Error message</label>
<label index="list.report.pagedeleted">Page deleted</label>
<label index="list.report.pagenotexisting">Page '###title###' doesn't exist</label>
<label index="list.report.pagenotvisible">Page '###title###' is not visible</label>
<label index="list.report.rowdeleted">###title### row deleted</label>
<label index="list.report.rownotexisting">###title### row doesn't exist</label>
<label index="list.report.noresponse">External Link not reachable</label>
typo3/sysext/linkvalidator/lib/class.tx_linkvalidator_checkinternallinks.php (revision )
*/
function checkLink($url, $softRefEntry, $reference) {
$rows = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
'uid, deleted, title',
'uid, deleted, title, hidden, starttime, endtime',
'pages',
'uid = ' . intval($url)
);
if ($rows[0]) {
if ($rows[0]['deleted'] == '1') {
$response = $GLOBALS['LANG']->getLL('list.report.pagedeleted');
$response = str_replace('###title###', $rows[0]['title'], $response);
return $response;
} elseif ($rows[0]['hidden'] == '1'
|| $GLOBALS['EXEC_TIME'] < intval($rows[0]['starttime'])
|| intval($rows[0]['endtime'] < $GLOBALS['EXEC_TIME'])) {
$response = $GLOBALS['LANG']->getLL('list.report.pagenotvisible');
$response = str_replace('###title###', $rows[0]['title'], $response);
return $response;
}
} else {
return $GLOBALS['LANG']->getLL('list.report.pagenotexisting');
}
(1-1/3)