Minor cleanup

git-svn-id: file:///svn/phpbb/trunk@194 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2001-04-19 21:17:16 +00:00
parent 895ac6e0df
commit 562a2e5592
2 changed files with 4 additions and 5 deletions

View file

@ -106,8 +106,8 @@ if($total_categories)
for($i = 0; $i < $total_categories; $i++) for($i = 0; $i < $total_categories; $i++)
{ {
$template->assign_block_vars("catrow", $template->assign_block_vars("catrow",
array("CAT_ID" => $category_rows[$i]["cat_id"], array(
"PHP_SELF" => $PHP_SELF, "CAT_ID" => $category_rows[$i]["cat_id"],
"POST_FORUM_URL" => POST_FORUM_URL, "POST_FORUM_URL" => POST_FORUM_URL,
"CAT_DESC" => stripslashes($category_rows[$i]["cat_title"]) "CAT_DESC" => stripslashes($category_rows[$i]["cat_title"])
) )
@ -165,7 +165,6 @@ if($total_categories)
"FORUM_ID" => $forum_rows[$j]["forum_id"], "FORUM_ID" => $forum_rows[$j]["forum_id"],
"FORUM_DESC" => stripslashes($forum_rows[$j]["forum_desc"]), "FORUM_DESC" => stripslashes($forum_rows[$j]["forum_desc"]),
"ROW_COLOR" => $row_color, "ROW_COLOR" => $row_color,
"PHPEX" => $phpEx,
"POSTS" => $forum_rows[$j]["forum_posts"], "POSTS" => $forum_rows[$j]["forum_posts"],
"TOPICS" => $forum_rows[$j]["forum_topics"], "TOPICS" => $forum_rows[$j]["forum_topics"],
"LAST_POST" => $last_post, "LAST_POST" => $last_post,

View file

@ -62,7 +62,6 @@ if(!$onlinerow)
} }
$template->assign_vars(array( $template->assign_vars(array(
"PHP_SELF" => $PHP_SELF,
"POST_FORUM_URL" => POST_FORUM_URL, "POST_FORUM_URL" => POST_FORUM_URL,
"POST_USER_URL" => POST_USERS_URL, "POST_USER_URL" => POST_USERS_URL,
"L_WHOSONLINE" => $l_whosonline, "L_WHOSONLINE" => $l_whosonline,
@ -175,7 +174,8 @@ if($online_count)
if($logged_on) if($logged_on)
{ {
$template->assign_block_vars("userrow", $template->assign_block_vars("userrow",
array("ROW_COLOR" => $row_color, array(
"ROW_COLOR" => $row_color,
"USER_ID" => $onlinerow[$i]['user_id'], "USER_ID" => $onlinerow[$i]['user_id'],
"USERNAME" => $username, "USERNAME" => $username,
"LOGGED_ON" => $logged_on, "LOGGED_ON" => $logged_on,