aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
author3D-I <marktravai@gmail.com>2018-11-01 04:12:36 +0100
committerMarc Alexander <admin@m-a-styles.de>2018-11-18 12:14:30 +0100
commit2e8315353e9ab18f3e67d222e6e6e7365512d2e5 (patch)
treeb4603ef134d1073403e3619124b22c5f3daf5217 /phpBB
parent97912d74e2f2e0e98662a590cc2e34ac929bd725 (diff)
downloadforums-2e8315353e9ab18f3e67d222e6e6e7365512d2e5.tar
forums-2e8315353e9ab18f3e67d222e6e6e7365512d2e5.tar.gz
forums-2e8315353e9ab18f3e67d222e6e6e7365512d2e5.tar.bz2
forums-2e8315353e9ab18f3e67d222e6e6e7365512d2e5.tar.xz
forums-2e8315353e9ab18f3e67d222e6e6e7365512d2e5.zip
[ticket/15863] Add core.viewforum_modify_sort_direction
PHPBB3-15863
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/viewforum.php12
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;