aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-07-28 22:47:00 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-08-01 10:18:55 +0200
commit099aaab7208123a5fb8195ccd5bdccee80ea2460 (patch)
treef9c1ab25c880f9130db35eccdd525349f62ec515 /phpBB/includes
parenta05cd6d837ad9d2202561ded9c100a9b1350c0c2 (diff)
downloadforums-099aaab7208123a5fb8195ccd5bdccee80ea2460.tar
forums-099aaab7208123a5fb8195ccd5bdccee80ea2460.tar.gz
forums-099aaab7208123a5fb8195ccd5bdccee80ea2460.tar.bz2
forums-099aaab7208123a5fb8195ccd5bdccee80ea2460.tar.xz
forums-099aaab7208123a5fb8195ccd5bdccee80ea2460.zip
[feature/php-events] Fix docs and naming of core.display_forums_modify_sql
PHPBB3-9550
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_display.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index 9ab90a6482..7111153fd4 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -119,8 +119,15 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
'ORDER_BY' => 'f.left_id',
);
+ /**
+ * Event to modify the SQL query before the forum data is queried
+ *
+ * @event core.display_forums_modify_sql
+ * @var array sql_ary The SQL array to get the data of the forums
+ * @since 3.1-A1
+ */
$vars = array('sql_ary');
- extract($phpbb_dispatcher->trigger_event('core.display_forums_build_query', compact($vars)));
+ extract($phpbb_dispatcher->trigger_event('core.display_forums_modify_sql', compact($vars)));
$sql = $db->sql_build_query('SELECT', $sql_ary);
$result = $db->sql_query($sql);