mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
MDL-25341 blogs import - minor whitespace clean
This commit is contained in:
parent
e38610e4d4
commit
b7c1da93ec
1 changed files with 2 additions and 2 deletions
|
@ -137,7 +137,7 @@ function blog_remove_associations_for_course($courseid) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Given a record in the {blog_external} table, checks the blog's URL
|
* Given a record in the {blog_external} table, checks the blog's URL
|
||||||
* for new entries not yet copied into Moodle.
|
* for new entries not yet copied into Moodle.
|
||||||
* Also attempts to identify and remove deleted blog entries
|
* Also attempts to identify and remove deleted blog entries
|
||||||
*
|
*
|
||||||
* @param object $externalblog
|
* @param object $externalblog
|
||||||
|
@ -255,7 +255,7 @@ function blog_sync_external_entries($externalblog) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//Look at the posts we have in the database to check if any of them have been deleted from the feed.
|
//Look at the posts we have in the database to check if any of them have been deleted from the feed.
|
||||||
//Only checking posts within the time frame returned by the rss feed. Older items may have been deleted or
|
//Only checking posts within the time frame returned by the rss feed. Older items may have been deleted or
|
||||||
//may just not be returned anymore. We cant tell the difference so we leave older posts alone.
|
//may just not be returned anymore. We cant tell the difference so we leave older posts alone.
|
||||||
$dbposts = $DB->get_records_select('post', 'created > :ts', array('ts' => $oldesttimestamp), '', 'id, uniquehash');
|
$dbposts = $DB->get_records_select('post', 'created > :ts', array('ts' => $oldesttimestamp), '', 'id, uniquehash');
|
||||||
$todelete = array();
|
$todelete = array();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue