Fix update script to delete language items
authorMatthias Schmidt <gravatronics@live.com>
Sat, 17 Apr 2021 15:12:06 +0000 (17:12 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 17 Apr 2021 15:12:06 +0000 (17:12 +0200)
wcfsetup/install/files/acp/update_com.woltlab.wcf_5.4_deleteLanguageItems.php

index dc35b801d563a550b1446bdd46b1ad9ef264d8f4..16a1b6993fb894c473174ea38828e34921f1b4d0 100644 (file)
@@ -13,4 +13,4 @@ $languageItemList = new LanguageItemList();
 $languageItemList->getConditionBuilder()->add('languageItem IN (?)', [$languageItems]);
 $languageItemList->readObjects();
 
-(new LanguageItemAction([$languageItemList->getObjects()], 'delete'))->executeAction();
+(new LanguageItemAction($languageItemList->getObjects(), 'delete'))->executeAction();