Archived
1
0

* Alwys increase last_modified when an entry is saved to prevent

stale entries in RSS feeds. Thanks to Cenic
This commit is contained in:
Garvin Hicking
2009-10-06 09:27:55 +00:00
parent 0149a2dc64
commit 18e02a5452
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -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();
}
//}
$res = serendipity_db_update('entries', array('id' => $entry['id']), $entry);
$newEntry = 0;