Project

General

Profile

Bug #13340 ยป 13340.diff

Michael Miousse, 2011-02-24 17:56

View differences:

classes/class.tx_linkvalidator_processor.php (working copy)
if (!empty($resultArray['elements'])) {
if ($spKey == 'typolink_tag') {
$this->analyseTypoLinks($resultArray, $results, $htmlParser);
$this->analyseTypoLinks($resultArray, $results, $htmlParser, $record, $field, $table);
} else {
$this->analyseLinks($resultArray, $results);
$this->analyseLinks($resultArray, $results, $record, $field, $table);
}
}
}
......
* @param array $results: array of broken links
* @return void
*/
private function analyseLinks($resultArray, &$results) {
private function analyseLinks($resultArray, &$results, $record, $field, $table) {
foreach ($resultArray['elements'] as $element) {
$r = $element['subst'];
$title = '';
......
$r = $element['subst'];
$title = '';
$type = '';
$idRecord = $record['uid'];
if (!empty($r)) {
// Parse string for special TYPO3 <link> tag:
......
* @param t3lib_parsehtml $htmlParser: instance of htmlparser
* @return void
*/
private function analyseTypoLinks($resultArray, &$results, $htmlParser) {
private function analyseTypoLinks($resultArray, &$results, $htmlParser, $record, $field, $table) {
$linkTags = $htmlParser->splitIntoBlock('link', $resultArray['content']);
$idRecord = $record['uid'];
for ($i = 1; $i < count($linkTags); $i += 2) {
$referencedRecordType = '';
foreach($resultArray['elements'] as $element) {
    (1-1/1)