aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/index.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-02-23 00:22:10 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-02-23 00:22:10 +0000
commit8f193b2a39b6e8f5796ff25933440353151ef8ce (patch)
tree5bc0c430042349ecd530f7c98fbdbf240e637143 /phpBB/index.php
parentacfee8f3f16416a1e68e359eb7412dfbbc697096 (diff)
downloadforums-8f193b2a39b6e8f5796ff25933440353151ef8ce.tar
forums-8f193b2a39b6e8f5796ff25933440353151ef8ce.tar.gz
forums-8f193b2a39b6e8f5796ff25933440353151ef8ce.tar.bz2
forums-8f193b2a39b6e8f5796ff25933440353151ef8ce.tar.xz
forums-8f193b2a39b6e8f5796ff25933440353151ef8ce.zip
Switch table naming vars to constants
git-svn-id: file:///svn/phpbb/trunk@21 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/index.php')
-rw-r--r--phpBB/index.php4
1 files changed, 2 insertions, 2 deletions
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);