- Patch #13941 by Prometheus6: Atom parser improvements.

4.7.x
Dries Buytaert 2005-09-08 20:08:42 +00:00
parent 274c44c6ff
commit ae8cfe3176
2 changed files with 16 additions and 2 deletions

View File

@ -289,9 +289,12 @@ function aggregator_element_start($parser, $name, $attributes) {
case 'SUBTITLE':
case 'LOGO':
case 'INFO':
case 'ID':
$element = $name;
break;
case 'ID':
if ($element != 'ITEM') {
$element = $name;
}
case 'LINK':
if ($attributes['REL'] == 'alternate') {
if ($element == 'ITEM') {
@ -328,10 +331,14 @@ function aggregator_element_end($parser, $name) {
case 'ENTRY':
case 'CONTENT':
case 'INFO':
$element = '';
break;
case 'ID':
if ($element == 'ID') {
$element = '';
}
}
}
/**
* Call-back function used by the XML parser.

View File

@ -289,9 +289,12 @@ function aggregator_element_start($parser, $name, $attributes) {
case 'SUBTITLE':
case 'LOGO':
case 'INFO':
case 'ID':
$element = $name;
break;
case 'ID':
if ($element != 'ITEM') {
$element = $name;
}
case 'LINK':
if ($attributes['REL'] == 'alternate') {
if ($element == 'ITEM') {
@ -328,10 +331,14 @@ function aggregator_element_end($parser, $name) {
case 'ENTRY':
case 'CONTENT':
case 'INFO':
$element = '';
break;
case 'ID':
if ($element == 'ID') {
$element = '';
}
}
}
/**
* Call-back function used by the XML parser.