Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
45d989a7
Commit
45d989a7
authored
Oct 23, 2006
by
Dries
Browse files
- Patch
#52015
by AjK: updated timestamps for feed items.
parent
5ec06d3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/aggregator/aggregator.module
View file @
45d989a7
...
...
@@ -957,7 +957,7 @@ function aggregator_parse_feed(&$data, $feed) {
function
aggregator_save_item
(
$edit
)
{
if
(
$edit
[
'iid'
]
&&
$edit
[
'title'
])
{
db_query
(
"UPDATE
{
aggregator_item
}
SET title = '%s', link = '%s', author = '%s', description = '%s', guid = '%s' WHERE iid = %d"
,
$edit
[
'title'
],
$edit
[
'link'
],
$edit
[
'author'
],
$edit
[
'description'
],
$edit
[
'iid'
],
$edit
[
'gid'
]);
db_query
(
"UPDATE
{
aggregator_item
}
SET title = '%s', link = '%s', author = '%s', description = '%s', guid = '%s'
, timestamp = %d
WHERE iid = %d"
,
$edit
[
'title'
],
$edit
[
'link'
],
$edit
[
'author'
],
$edit
[
'description'
],
$edit
[
'iid'
],
$edit
[
'timestamp'
],
$edit
[
'gid'
]);
}
else
if
(
$edit
[
'iid'
])
{
db_query
(
'DELETE FROM {aggregator_item} WHERE iid = %d'
,
$edit
[
'iid'
]);
...
...
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