Project

General

Profile

Bug #10987 » linkvalidator_notvisible_v3.patch

Joh. Feustel, 2010-11-22 10:48

View differences:

typo3/sysext/linkvalidator/lib/class.tx_linkvalidator_checkinternallinks.php (working copy)
*/
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'])
|| ($rows[0]['endtime'] && 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');
}
typo3/sysext/linkvalidator/modfunc1/locallang.xml (working copy)
<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>
(3-3/3)