aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-05-28 15:25:23 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-05-28 15:25:23 +0000
commitcc213bfc499312a6e23d1f4bf40af362946ad53f (patch)
tree6f15d9311d6d4ed7392be3f0ddf06e93e48a10b7 /phpBB/viewtopic.php
parent03dd4c39c3caeb79d8713eee14319a4831730d72 (diff)
downloadforums-cc213bfc499312a6e23d1f4bf40af362946ad53f.tar
forums-cc213bfc499312a6e23d1f4bf40af362946ad53f.tar.gz
forums-cc213bfc499312a6e23d1f4bf40af362946ad53f.tar.bz2
forums-cc213bfc499312a6e23d1f4bf40af362946ad53f.tar.xz
forums-cc213bfc499312a6e23d1f4bf40af362946ad53f.zip
Additional page info sent to templates
git-svn-id: file:///svn/phpbb/trunk@361 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 9ad755a949..4499564661 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -427,7 +427,7 @@ for($x = 0; $x < $total_posts; $x++)
$color = "#".$theme['td_color2'];
}
- $message = eregi_replace("\[addsig]$", "<br />_________________<br />" . nl2br($user_sig), $message);
+ $message = eregi_replace("\[addsig]$", "<br /><br />_________________<br />" . nl2br($user_sig), $message);
$template->assign_block_vars("postrow", array(
"TOPIC_TITLE" => $topic_title,
@@ -473,8 +473,14 @@ else
}
$template->assign_vars(array(
- "PAGES" => $pages,
- "PAGINATION" => generate_pagination("viewtopic.$phpEx?".POST_TOPIC_URL."=$topic_id", $total_replies, $board_config['posts_per_page'], $start)));
+ "PAGINATION" => generate_pagination("viewtopic.$phpEx?".POST_TOPIC_URL."=$topic_id", $total_replies, $board_config['posts_per_page'], $start),
+ "ON_PAGE" => (floor($start/$board_config['posts_per_page'])+1),
+ "TOTAL_PAGES" => ceil($total_replies/$board_config['posts_per_page']),
+
+ "L_OF" => $lang['of'],
+ "L_PAGE" => $lang['Page'],
+ "L_GOTO_PAGE" => $lang['Goto_page'])
+);
$template->pparse("body");