Commit 636b43e5 authored by Dries's avatar Dries

- Patch #743804 by gpk: comment_enable() should use node created time not...

- Patch #743804 by gpk: comment_enable() should use node created time not changed time for last_comment_timestamp().
parent e7d18bc0
......@@ -36,7 +36,7 @@ function comment_enable() {
// Insert records into the node_comment_statistics for nodes that are missing.
$query = db_select('node', 'n');
$query->leftJoin('node_comment_statistics', 'ncs', 'ncs.nid = n.nid');
$query->addField('n', 'changed', 'last_comment_timestamp');
$query->addField('n', 'created', 'last_comment_timestamp');
$query->addField('n', 'uid', 'last_comment_uid');
$query->addField('n', 'nid');
$query->addExpression('0', 'comment_count');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment