[BUGFIX] Use database name property in admin_get_tables
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Database / DatabaseConnection.php
index e370a04..f34b98a 100644 (file)
@@ -1317,7 +1317,7 @@ class DatabaseConnection {
                        $this->connectDB();
                }
                $whichTables = array();
-               $tables_result = $this->link->query('SHOW TABLE STATUS FROM `' . TYPO3_db . '`');
+               $tables_result = $this->link->query('SHOW TABLE STATUS FROM `' . $this->databaseName . '`');
                if ($tables_result !== FALSE) {
                        while ($theTable = $tables_result->fetch_assoc()) {
                                $whichTables[$theTable['Name']] = $theTable;
@@ -1839,4 +1839,4 @@ class DatabaseConnection {
                );
        }
 }
-?>
\ No newline at end of file
+?>