|
From: Benjamin C. <bc...@us...> - 2001-10-12 13:43:33
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv4552
Modified Files:
config.php include.php
Log Message:
Use table name constants for configuration table
Index: config.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/config.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- config.php 2001/10/12 04:19:31 1.13
+++ config.php 2001/10/12 13:43:29 1.14
@@ -44,6 +44,7 @@
define ('TBL_BUG_HISTORY', TBL_PREFIX.'bug_history');
define ('TBL_COMMENT', TBL_PREFIX.'comment');
define ('TBL_COMPONENT', TBL_PREFIX.'component');
+define ('TBL_CONFIGURATION', TBL_PREFIX.'configuration');
define ('TBL_GROUP_PERM', TBL_PREFIX.'group_perm');
define ('TBL_OS', TBL_PREFIX.'os');
define ('TBL_PROJECT', TBL_PREFIX.'project');
Index: include.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/include.php,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -r1.61 -r1.62
--- include.php 2001/10/12 04:19:31 1.61
+++ include.php 2001/10/12 13:43:29 1.62
@@ -51,7 +51,7 @@
$q = new dbclass;
// Set up the configuration variables
-$q->query("select varname, varvalue from configuration");
+$q->query('select varname, varvalue from '.TBL_CONFIGURATION);
while (list($k, $v) = $q->grab()) {
define($k, $v);
}
|