Status_network::setupDB() sets up related tables too

This commit is contained in:
Evan Prodromou 2011-04-28 15:29:36 -07:00
parent 1b6ff2f22a
commit 7ed3b9cf3f

View File

@ -74,7 +74,10 @@ class Status_network extends Safe_DataObject
$config['db']['database_'.$dbname] = "mysqli://$dbuser:$dbpass@$dbhost/$dbname";
$config['db']['ini_'.$dbname] = INSTALLDIR.'/classes/status_network.ini';
$config['db']['table_status_network'] = $dbname;
foreach (array('status_network', 'status_network_tag', 'unavailable_status_network') as $table) {
$config['db']['table_'.$table] = $dbname;
}
if (class_exists('Memcache')) {
self::$cache = new Memcache();