"woltlab-core-date-time": WoltlabCoreDateTime;
"woltlab-core-file": WoltlabCoreFileElement;
"woltlab-core-file-upload": WoltlabCoreFileUploadElement;
+ "woltlab-core-google-maps": WoltlabCoreGoogleMapsElement;
"woltlab-core-loading-indicator": WoltlabCoreLoadingIndicatorElement;
+ "woltlab-core-notice": WoltlabCoreNoticeElement;
"woltlab-core-pagination": WoltlabCorePaginationElement;
- "woltlab-core-google-maps": WoltlabCoreGoogleMapsElement;
"woltlab-core-reaction-summary": WoltlabCoreReactionSummaryElement;
+ "woltlab-core-toggle-button": WoltlabCoreToggleButtonElement;
}
}
// user notifications
$conditions = new PreparedStatementConditionBuilder();
$conditions->add("authorID IN (?)", [$this->mergedUserIDs]);
- $sql = "UPDATE IGNORE wcf" . WCF_N . "_user_notification_author
+ $sql = "UPDATE IGNORE wcf1_user_notification_author
SET authorID = ?
" . $conditions;
- $statement = WCF::getDB()->prepareStatement($sql);
+ $statement = WCF::getDB()->prepare($sql);
$statement->execute(\array_merge([$this->destinationUserID], $conditions->getParameters()));
+ // articles
+ $conditions = new PreparedStatementConditionBuilder();
+ $conditions->add("userID IN (?)", [$this->mergedUserIDs]);
+ $sql = "UPDATE wcf" . WCF_N . "_article
+ SET userID = ?
+ " . $conditions;
+ $statement = WCF::getDB()->prepareStatement($sql);
+ $statement->execute(\array_merge([$this->destinationUserID], $conditions->getParameters()));
+
// delete merged users
$action = new UserAction($this->mergedUserIDs, 'delete');
$action->executeAction();