diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-07-17 10:58:04 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-07-17 10:58:04 +0200 |
commit | 4e7705fcaf10180b793993f6e8154e7da3347114 (patch) | |
tree | 465d2693626bb415c31efcc9f54731aee4563604 /phpBB | |
parent | 44303aa425c975dc6d1f10308257f699848bfd22 (diff) | |
parent | a1ecb6db69c0aa9f5c5835accc1ea2e453b90fb0 (diff) | |
download | forums-4e7705fcaf10180b793993f6e8154e7da3347114.tar forums-4e7705fcaf10180b793993f6e8154e7da3347114.tar.gz forums-4e7705fcaf10180b793993f6e8154e7da3347114.tar.bz2 forums-4e7705fcaf10180b793993f6e8154e7da3347114.tar.xz forums-4e7705fcaf10180b793993f6e8154e7da3347114.zip |
Merge branch '3.1.x' into 3.2.x
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/viewforum.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index 7db5b8759c..9dc8e91f7a 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -495,6 +495,28 @@ if ($forum_data['forum_type'] == FORUM_POST) 'ORDER_BY' => 't.topic_time DESC', ); + + /** + * Event to modify the SQL query before the announcement topic ids data is retrieved + * + * @event core.viewforum_get_announcement_topic_ids_data + * @var array forum_data Data about the forum + * @var array g_forum_ary Global announcement forums array + * @var array sql_anounce_array SQL announcement array + * @var array sql_ary SQL query array to get the announcement topic ids data + * @var int forum_id The forum ID + * + * @since 3.1.10-RC1 + */ + $vars = array( + 'forum_data', + 'g_forum_ary', + 'sql_anounce_array', + 'sql_ary', + 'forum_id', + ); + extract($phpbb_dispatcher->trigger_event('core.viewforum_get_announcement_topic_ids_data', compact($vars))); + $sql = $db->sql_build_query('SELECT', $sql_ary); $result = $db->sql_query($sql); |