includes/common.php
changeset 735 f191cb6bd0ca
parent 719 f82da241eaf8
child 800 9cdfe82c56cd
--- a/includes/common.php	Sun Nov 09 14:22:03 2008 -0500
+++ b/includes/common.php	Sun Nov 09 14:22:41 2008 -0500
@@ -236,6 +236,16 @@
   }
 }
 
+// Build the list of system tables (this is mostly done in constants.php, but that's before table_prefix is known)
+if ( defined('table_prefix') && !defined('ENANO_TABLELIST_PREFIXED') )
+{
+  define('ENANO_TABLELIST_PREFIXED', 1);
+  foreach ( $system_table_list as $i => $_ )
+  {
+    $system_table_list[$i] = table_prefix . $system_table_list[$i];
+  }
+}
+
 // Select and fetch the site configuration
 $e = $db->sql_query('SELECT config_name, config_value FROM '.table_prefix.'config;');
 if ( !$e )