Bug #10589 » v1.patch
lib/class.tx_linkvalidator_checkexternallinks.php (working copy) | ||
---|---|---|
if($this->url_reports[$url]) {
|
||
return $this->url_reports[$url];
|
||
}
|
||
// remove possible anchor from the url
|
||
// remove possible anchor from the url
|
||
if (strrpos($url, '#') !== FALSE) {
|
||
$url = substr($url, 0, strrpos($url, '#'));
|
||
}
|
||
// try to fetch the content of the URL (just fetching of headers doesn't work!)
|
||
// try to fetch the content of the URL (just fetching of headers doesn't work!)
|
||
$report = array();
|
||
t3lib_div::getURL($url, 1, FALSE, $report);
|
||
$ret = 1;
|
||
// analyze the response
|
||
// analyze the response
|
||
if ($report['error']) {
|
||
$ret = $GLOBALS['LANG']->getLL('list.report.noresponse');
|
||
} elseif ($report['http_code'] >= 400) {
|
||
$ret = sprintf($GLOBALS['LANG']->getLL('list.report.externalerror'), $report['http_code']);
|
||
}
|
||
$this->url_reports[$url] = $ret;
|
modfunc1/locallang.xml (working copy) | ||
---|---|---|
<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>
|
||
<label index="list.report.externalerror">External Link returned HTTP error code (%s)</label>
|
||
<label index="list.report.filenotexisting">File doesn't exist</label>
|
||
<label index="label_send">Check Links</label>
|
||
<label index="hooks.db">Internal Links</label>
|
||
... | ... | |
<label index="list.report.rowdeleted">###title### Eintrag gelöscht</label>
|
||
<label index="list.report.rownotexisting">###title### Eintrag existiert nicht</label>
|
||
<label index="list.report.noresponse">Externer Link nicht erreichbar</label>
|
||
<label index="list.report.externalerror">Externer Link gibt HTTP Fehler (%s) zurück</label>
|
||
<label index="list.report.filenotexisting">Datei existiert nicht</label>
|
||
<label index="label_send">Links überprüfen</label>
|
||
<label index="label_showalllinks">Alle Links anzeigen (inkl. funktionierende)</label>
|