From: Alexander Ebert Date: Wed, 15 May 2013 16:35:21 +0000 (+0200) Subject: Fixed language import during setup X-Git-Tag: 2.0.0_Beta_1~180 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8aea75d5558f9784955268b615c4e9bacac8edad;p=GitHub%2FWoltLab%2FWCF.git Fixed language import during setup --- diff --git a/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php b/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php index 877ca5cd85..680756d3a4 100644 --- a/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php +++ b/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php @@ -226,7 +226,7 @@ class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObje $repeat = count($parameters) / $step; $sql = "INSERT INTO wcf".WCF_N."_language_item - (languageID, languageItem, languageItemValue, languageCategoryID, packageID) + (languageID, languageItem, languageItemValue, languageCategoryID". ($packageID ? ", packageID" : "") . ") VALUES ".substr(str_repeat('(?, ?, ?, ?'. ($packageID ? ', ?' : '') .'), ', $repeat), 0, -2)." ON DUPLICATE KEY UPDATE languageItemValue = VALUES(languageItemValue),