diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-03-06 13:42:26 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-03-06 13:42:26 +0100 |
commit | d5a79ad5550cc4670bb718285d7fdfdd432ffea9 (patch) | |
tree | 83b91c5317243cec6cf6f636f74516404e842ca6 /phpBB | |
parent | f3ab7aae9effae85e3239be77343dfb6aff80513 (diff) | |
parent | 52b83bd5e92cd26461f721942028a39d5983ba7d (diff) | |
download | forums-d5a79ad5550cc4670bb718285d7fdfdd432ffea9.tar forums-d5a79ad5550cc4670bb718285d7fdfdd432ffea9.tar.gz forums-d5a79ad5550cc4670bb718285d7fdfdd432ffea9.tar.bz2 forums-d5a79ad5550cc4670bb718285d7fdfdd432ffea9.tar.xz forums-d5a79ad5550cc4670bb718285d7fdfdd432ffea9.zip |
Merge pull request #3405 from brunoais/ticket/13625
[ticket/13625] Adding multiple variables to core.viewforum_get_topic_data
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/viewforum.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index 92ac9171cb..cd55114bad 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -391,15 +391,29 @@ $sql_array = array( /** * Event to modify the SQL query before the topic data is retrieved * +* It may also be used to override the above assigned template vars +* * @event core.viewforum_get_topic_data * @var array forum_data Array with forum data * @var array sql_array The SQL array to get the data of all topics +* @var array forum_id The forum_id whose topics are being listed +* @var array topics_count The total number of topics for display +* @var array sort_days The oldest topic displayable in elapsed days +* @var array sort_key The sorting by. It is one of the first character of (in low case): +* Author, Post time, Replies, Subject, Views +* @var array sort_dir Either "a" for ascending or "d" for descending * @since 3.1.0-a1 * @change 3.1.0-RC4 Added forum_data var +* @change 3.1.4-RC1 Added forum_id, topics_count, sort_days, sort_key and sort_dir vars */ $vars = array( 'forum_data', 'sql_array', + 'forum_id', + 'topics_count', + 'sort_days', + 'sort_key', + 'sort_dir', ); extract($phpbb_dispatcher->trigger_event('core.viewforum_get_topic_data', compact($vars))); |