diff options
| author | natec <natec@users.sourceforge.net> | 2001-03-17 00:46:26 +0000 |
|---|---|---|
| committer | natec <natec@users.sourceforge.net> | 2001-03-17 00:46:26 +0000 |
| commit | 40f1f172a81232e910e09981116e58f45bb6b344 (patch) | |
| tree | c1e70a3cb88d1fb8a8675db7ba3cb5b6942a4795 /phpBB/viewforum.php | |
| parent | b1ce902c02c90e58dc54e52f90946937f7b569e0 (diff) | |
| download | forums-40f1f172a81232e910e09981116e58f45bb6b344.tar forums-40f1f172a81232e910e09981116e58f45bb6b344.tar.gz forums-40f1f172a81232e910e09981116e58f45bb6b344.tar.bz2 forums-40f1f172a81232e910e09981116e58f45bb6b344.tar.xz forums-40f1f172a81232e910e09981116e58f45bb6b344.zip | |
New template system. Lots of merging conflicts, so let nate know if he broke stuff.
git-svn-id: file:///svn/phpbb/trunk@105 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewforum.php')
| -rw-r--r-- | phpBB/viewforum.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index 0bd7c4cac7..b631cc8d55 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -74,7 +74,6 @@ for($x = 0; $x < $db->sql_numrows($result); $x++) include('includes/page_header.'.$phpEx); -$template->set_block("body", "topicrow", "topics"); if(!isset($start)) { @@ -137,7 +136,7 @@ if($total_topics) $last_post_time = date($date_format, $topic_rowset[$x]["post_time"]); $last_post_user = $topic_rowset[$x]["user2"]; $folder_img = "<img src=\"images/folder.gif\">"; - $template->set_var(array("FORUM_ID" => $forum_id, + $template->assign_block_vars("topicrow", array("FORUM_ID" => $forum_id, "POST_TOPIC_URL" => POST_TOPIC_URL, "TOPIC_ID" => $topic_id, "FOLDER" => $folder_img, @@ -147,8 +146,8 @@ if($total_topics) "TOPIC_TITLE" => $topic_title, "VIEWS" => $views, "LAST_POST" => $last_post_time . "<br><a href=\"profile.$phpEx?mode=viewprofile?user_id=".$topic_rowset[$x]["id2"]."\">" . $last_post_user ."</a>")); - $template->parse("topics", "topicrow", true); } + $count = 1; $next = $start + $topics_per_page; if($topics_count > $topics_per_page) @@ -177,8 +176,8 @@ if($total_topics) } } } - $template->set_var(array("PAGINATION" => $pagination)); - $template->pparse("output", array("topics", "body")); + $template->assign_vars(array("PAGINATION" => $pagination)); + $template->pparse("body"); } else { |
