From 8f193b2a39b6e8f5796ff25933440353151ef8ce Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Fri, 23 Feb 2001 00:22:10 +0000 Subject: Switch table naming vars to constants git-svn-id: file:///svn/phpbb/trunk@21 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'phpBB/index.php') diff --git a/phpBB/index.php b/phpBB/index.php index c6e834f94b..2295e3a34d 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -41,7 +41,7 @@ include('page_header.'.$phpEx); $template->set_block("body", "catrow", "cats"); $template->set_block("catrow", "forumrow", "forums"); -$sql = "SELECT * FROM $categories_table ORDER BY cat_order"; +$sql = "SELECT * FROM ".CATEGORIES_TABLE." ORDER BY cat_order"; if(!$result = $db->sql_query($sql)) { error_die($db, QUERY_ERROR); @@ -57,7 +57,7 @@ if($total_rows) "PHP_SELF" => $PHP_SELF, "CAT_DESC" => stripslashes($rows[$x]["cat_title"]))); - $sub_sql = "SELECT f.* FROM $forums_table f WHERE f.cat_id = '".$rows[$x]["cat_id"]."' ORDER BY forum_id"; + $sub_sql = "SELECT f.* FROM ".FORUMS_TABLE." f WHERE f.cat_id = '".$rows[$x]["cat_id"]."' ORDER BY forum_id"; if(!$sub_result = $db->sql_query($sub_sql)) { error_die($db, QUERY_ERROR); -- cgit v1.2.1