From be6cd0dd1b6cea95e795f826af749013c611b861 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 26 Feb 2015 13:39:36 +0100 Subject: [PATCH] Preparing internal release 2.1.0 --- com.woltlab.wcf/package.xml | 14 ++--- ...sibleGroups_com.woltlab.wcf_2.1.0_rc_2.php | 61 ------------------- 2 files changed, 7 insertions(+), 68 deletions(-) delete mode 100644 wcfsetup/install/files/acp/update_accessibleGroups_com.woltlab.wcf_2.1.0_rc_2.php diff --git a/com.woltlab.wcf/package.xml b/com.woltlab.wcf/package.xml index 090ff67e21..b7acbf9e72 100644 --- a/com.woltlab.wcf/package.xml +++ b/com.woltlab.wcf/package.xml @@ -5,8 +5,8 @@ 1 - 2.1.0 RC 2 - 2015-02-22 + 2.1.0 + 2015-02-26 @@ -89,15 +89,15 @@ acp/rebuild_comments_com.woltlab.wcf_2.1.php - - files_update.tar + + files_update.tar templates_update.tar - acp/update_accessibleGroups_com.woltlab.wcf_2.1.0_rc_2.php + language/*.xml + bbcode.xml + coreObject.xml option.xml userGroupOption.xml - - language/*.xml diff --git a/wcfsetup/install/files/acp/update_accessibleGroups_com.woltlab.wcf_2.1.0_rc_2.php b/wcfsetup/install/files/acp/update_accessibleGroups_com.woltlab.wcf_2.1.0_rc_2.php deleted file mode 100644 index 06214f7478..0000000000 --- a/wcfsetup/install/files/acp/update_accessibleGroups_com.woltlab.wcf_2.1.0_rc_2.php +++ /dev/null @@ -1,61 +0,0 @@ - - * @package com.woltlab.wcf - * @category Community Framework - */ - -// fix superfluous group ID in accessibleGroups list -$sql = "SELECT groupID - FROM wcf".WCF_N."_user_group"; -$statement = WCF::getDB()->prepareStatement($sql); -$statement->execute(); -$validGroupIDs = array(); -while ($row = $statement->fetchArray()) { - $validGroupIDs[] = $row['groupID']; -} - -$sql = "SELECT * - FROM wcf".WCF_N."_user_group_option_value - WHERE optionID = ( - SELECT optionID - FROM wcf".WCF_N."_user_group_option - WHERE optionName = 'admin.user.accessibleGroups' - )"; -$statement = WCF::getDB()->prepareStatement($sql); -$statement->execute(); -$updateData = array(); -$optionID = 0; -while ($row = $statement->fetchArray()) { - $optionID = $row['optionID']; - $groupIDs = explode(',', $row['optionValue']); - $newGroupIDs = array(); - for ($i = 0, $length = count($groupIDs); $i < $length; $i++) { - $groupID = $groupIDs[$i]; - if (in_array($groupID, $validGroupIDs)) { - $newGroupIDs[] = $groupID; - } - } - - $updateData[$row['groupID']] = implode(',', $newGroupIDs); -} - -$sql = "UPDATE wcf".WCF_N."_user_group_option_value - SET optionValue = ? - WHERE groupID = ? - AND optionID = ?"; -$statement = WCF::getDB()->prepareStatement($sql); - -WCF::getDB()->beginTransaction(); -foreach ($updateData as $groupID => $optionValue) { - $statement->execute(array( - $optionValue, - $groupID, - $optionID - )); -} -WCF::getDB()->commitTransaction(); -- 2.20.1