Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Drupal.org issue queue
Drupal.org issue queue
Security & Compliance
Security & Compliance
Dependency List
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
project
drupal
Commits
ae8cfe31
Commit
ae8cfe31
authored
Sep 08, 2005
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#13941
by Prometheus6: Atom parser improvements.
parent
274c44c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
modules/aggregator.module
modules/aggregator.module
+8
-1
modules/aggregator/aggregator.module
modules/aggregator/aggregator.module
+8
-1
No files found.
modules/aggregator.module
View file @
ae8cfe31
...
...
@@ -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.
...
...
modules/aggregator/aggregator.module
View file @
ae8cfe31
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment