diff options
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 1eb05e96c..e9b4847e4 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -422,14 +422,11 @@ function node_save(&$node) { if ($node->revision) { $node->old_vid = $node->vid; $node->vid = db_next_id('{node_revisions}_vid'); - // We always update the timestamp for new revisions. - $node->changed = time(); } } - if (!$node->changed) { - $node->changed = time(); - } + // The changed timestamp is always updated for bookkeeping purposes (revisions, searching, ...) + $node->changed = time(); // Split off revisions data to another structure $revisions_table_values = array('nid' => $node->nid, 'vid' => $node->vid, |