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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user