]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Status_network::setupDB() sets up related tables too
authorEvan Prodromou <evan@status.net>
Thu, 28 Apr 2011 22:29:36 +0000 (15:29 -0700)
committerEvan Prodromou <evan@status.net>
Thu, 28 Apr 2011 22:29:36 +0000 (15:29 -0700)
classes/Status_network.php

index 5d01e72ccc9041c62f1313891963bf820fdfaa37..c3acacf595c029c232f9cf16dbbd2d1e51da3765 100644 (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();