diff options
author | Marc Alexander <admin@m-a-styles.de> | 2018-11-18 19:36:14 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2018-11-18 19:36:14 +0100 |
commit | 3606cce27ff6824b0364ad1f2c00d3ebf159de41 (patch) | |
tree | 3ce43b4680e5f9d0a727cdb83a0f08679985698d /phpBB | |
parent | 5b3eb2d61cd148db896b3dd9fa4e541752294aae (diff) | |
parent | 2e8315353e9ab18f3e67d222e6e6e7365512d2e5 (diff) | |
download | forums-3606cce27ff6824b0364ad1f2c00d3ebf159de41.tar forums-3606cce27ff6824b0364ad1f2c00d3ebf159de41.tar.gz forums-3606cce27ff6824b0364ad1f2c00d3ebf159de41.tar.bz2 forums-3606cce27ff6824b0364ad1f2c00d3ebf159de41.tar.xz forums-3606cce27ff6824b0364ad1f2c00d3ebf159de41.zip |
Merge pull request #5436 from 3D-I/ticket/15863
[ticket/15863] Add core.viewforum_modify_sort_direction
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/viewforum.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index 416ffe3d90..0d56a5a9c5 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -598,6 +598,18 @@ else $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; |