Skip to content

Commit

Permalink
Merge pull request phpbb#5436 from 3D-I/ticket/15863
Browse files Browse the repository at this point in the history
[ticket/15863] Add core.viewforum_modify_sort_direction
  • Loading branch information
marc1706 committed Nov 18, 2018
2 parents 5b3eb2d + 2e83153 commit 3606cce
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions phpBB/viewforum.php
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,18 @@
$sql_start = $start;
}

/**
* Modify the topics sort ordering if needed
*
* @event core.viewforum_modify_sort_direction
* @var string direction Topics sort order
* @since 3.2.5-RC1
*/
$vars = array(
'direction',
);
extract($phpbb_dispatcher->trigger_event('core.viewforum_modify_sort_direction', compact($vars)));

if (is_array($sort_by_sql[$sort_key]))
{
$sql_sort_order = implode(' ' . $direction . ', ', $sort_by_sql[$sort_key]) . ' ' . $direction;
Expand Down

0 comments on commit 3606cce

Please sign in to comment.