Fix the export of the i18n values for filebase licenses 6.0
authorAlexander Ebert <ebert@woltlab.com>
Wed, 25 Sep 2024 09:44:46 +0000 (11:44 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 25 Sep 2024 09:44:46 +0000 (11:44 +0200)
See https://www.woltlab.com/community/thread/308281-import-einer-woltlab-suite-mit-einem-anderen-tabellen-prefix-nicht-m%C3%B6glich/

files/lib/system/exporter/WBB4xExporter.class.php

index e91b177d1dff3d6b736e1e67c29073e436c80696..f52edb251578567cfad62209a89db36c6cb6fa3f 100644 (file)
@@ -3076,8 +3076,8 @@ final class WBB4xExporter extends AbstractExporter
         $statement->execute([$offset + 1, $offset + $limit]);
 
         $sql = "SELECT      language_item.languageItemValue, language.languageCode
-                FROM        wcf1_language_item language_item
-                LEFT JOIN   wcf1_language language ON (language.languageID = language_item.languageID)
+                FROM        wcf" . $this->dbNo . "_language_item language_item
+                LEFT JOIN   wcf" . $this->dbNo . "_language language ON (language.languageID = language_item.languageID)
                 WHERE       language_item.languageItem = ?";
         $languageStatement = $this->database->prepareStatement($sql);