1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 04:04:12 +02:00
- some stupid bugs in restore
- centralized the method of getting tables


git-svn-id: file:///svn/phpbb/trunk@7015 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M
2007-02-19 19:35:52 +00:00
parent bf8bea4967
commit 59fdd2edca
4 changed files with 77 additions and 76 deletions

View File

@@ -445,22 +445,13 @@ class install_convert extends module
if (!$result)
{
$prefixes = array();
// TODO: fixme
if ($result = $src_db->sql_query('SHOW TABLES'))
$tables_existing = get_tables($src_db);
foreach ($tables_existing as $table_name)
{
while ($row = $src_db->sql_fetchrow($result))
{
if (sizeof($row) > 1)
{
compare_table($tables, $row[0], $prefixes);
}
else if (list(, $tablename) = @each($row))
{
compare_table($tables, $tablename, $prefixes);
}
}
$src_db->sql_freeresult($result);
compare_table($tables, $table_name, $prefixes);
}
unset($tables_existing);
foreach ($prefixes as $prefix => $count)
{