Closed (fixed)
Project:
Recent Blocks
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2006 at 19:23 UTC
Updated:
4 Feb 2006 at 23:31 UTC
There's a bug in this line (function _recent_blocks_block):
($show['node date'] ? '<br />'. t('%time ago', array('%time' => format_interval(time() - $node->$s['mode_full_sort']))) : '') .
Note that mode_full_sort may not point to the node changed column. Here's how IMO that line should look:
($show['node date'] ? '<br />'. t('%time ago', array('%time' => format_interval(time() - $node->changed))) : '') .
Comments
Comment #1
markus_petrux commentedSorry, fixing the title. How could I wrote that?
Comment #2
Cvbge commentedHi.
Please note that sorting method is configurable and $s['mode_full_sort'] tells us by which property we should sort.
Comment #3
markus_petrux commentedBut this is not about the "Sort by", but about the date displayed when "Show what?" is set to 'node date'.
...or is it that "Show what?" refers to the date selected in the "Sort by" field? If so, this is not clear in the settings panel description. I seemed to me that 'node date' was related to the $node->changed data.
I'm afraid to change the status of the issue.
Comment #4
markus_petrux commentedIf "Sort what" refers to "Sort by", then one thing is wrong, the "created" column is missing in the query used in _recent_blocks_block() for full mode:
With the created column:
Comment #5
Cvbge commentedYou're right.
I've changed it so it displays node 'created' date if "sort by" is set to created, or 'changed' in all other cases.
But I think it'd be nice to be able to display GREATEST(last post, changed) even if there are no comments (currently not possibile)...
Comment #6
(not verified) commented