* Alwys increase last_modified when an entry is saved to prevent
stale entries in RSS feeds. Thanks to Cenic
This commit is contained in:
@ -3,6 +3,9 @@
|
|||||||
Version 1.5 ()
|
Version 1.5 ()
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
|
* Always increase last_modified when an entry is saved to prevent
|
||||||
|
stale entries in RSS feeds. Thanks to Cenic
|
||||||
|
|
||||||
* Allow comment sidebar plugin to only show coments for entries
|
* Allow comment sidebar plugin to only show coments for entries
|
||||||
that are allowed to be viewed by the current visitor.
|
that are allowed to be viewed by the current visitor.
|
||||||
|
|
||||||
|
@ -1355,9 +1355,9 @@ function serendipity_updertEntry($entry) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!serendipity_db_bool($entry['isdraft']) && !serendipity_db_bool($_entry['isdraft'])) {
|
//if (!serendipity_db_bool($entry['isdraft']) && !serendipity_db_bool($_entry['isdraft'])) {
|
||||||
$entry['last_modified'] = time();
|
$entry['last_modified'] = time();
|
||||||
}
|
//}
|
||||||
|
|
||||||
$res = serendipity_db_update('entries', array('id' => $entry['id']), $entry);
|
$res = serendipity_db_update('entries', array('id' => $entry['id']), $entry);
|
||||||
$newEntry = 0;
|
$newEntry = 0;
|
||||||
|
Reference in New Issue
Block a user