diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2014-08-21 00:22:41 +0200 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2014-08-21 00:22:41 +0200 |
| commit | 19aecaf7c7d2e4532f9b79a5eb1bc32e8c6fae45 (patch) | |
| tree | b6a960fc88265f992bf3281b984bcbeb0086d774 | |
| parent | aa8403ff027a22ab98a31175f3a0b1c349316230 (diff) | |
| parent | 421005b28208e91c236a84500f2799a9f6033a03 (diff) | |
| download | forums-19aecaf7c7d2e4532f9b79a5eb1bc32e8c6fae45.tar forums-19aecaf7c7d2e4532f9b79a5eb1bc32e8c6fae45.tar.gz forums-19aecaf7c7d2e4532f9b79a5eb1bc32e8c6fae45.tar.bz2 forums-19aecaf7c7d2e4532f9b79a5eb1bc32e8c6fae45.tar.xz forums-19aecaf7c7d2e4532f9b79a5eb1bc32e8c6fae45.zip | |
Merge branch 'develop-ascraeus' into develop
| -rw-r--r-- | phpBB/viewtopic.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 8d7ab5323d..c2faffca85 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -602,6 +602,35 @@ if (!empty($_EXTRA_URL)) // If we've got a hightlight set pass it on to pagination. $base_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id" . ((strlen($u_sort_param)) ? "&$u_sort_param" : '') . (($highlight_match) ? "&hilit=$highlight" : '')); + +/** +* Event to modify data before template variables are being assigned +* +* @event core.viewtopic_assign_template_vars_before +* @var string base_url URL to be passed to generate pagination +* @var int forum_id Forum ID +* @var int post_id Post ID +* @var array quickmod_array Array with quick moderation options data +* @var int start Pagination information +* @var array topic_data Array with topic data +* @var int topic_id Topic ID +* @var array topic_tracking_info Array with topic tracking data +* @var int total_posts Topic total posts count +* @since 3.1.0-RC4 +*/ +$vars = array( + 'base_url', + 'forum_id', + 'post_id', + 'quickmod_array', + 'start', + 'topic_data', + 'topic_id', + 'topic_tracking_info', + 'total_posts', +); +extract($phpbb_dispatcher->trigger_event('core.viewtopic_assign_template_vars_before', compact($vars))); + $pagination->generate_template_pagination($base_url, 'pagination', 'start', $total_posts, $config['posts_per_page'], $start); // Send vars to template |
