<packagedescription><![CDATA[Free web-framework, designed and developed for complex community applications.]]></packagedescription>
<packagedescription language="de"><![CDATA[Freies Web-Framework, das für komplexe Community-Anwendungen entworfen und entwickelt wurde.]]></packagedescription>
<isapplication>1</isapplication>
- <version>2.1.0 RC 2</version> <!-- codename: typhoon -->
- <date>2015-02-22</date>
+ <version>2.1.0</version> <!-- codename: typhoon -->
+ <date>2015-02-26</date>
</packageinformation>
<authorinformation>
<instruction type="script" run="standalone">acp/rebuild_comments_com.woltlab.wcf_2.1.php</instruction>
</instructions>
- <instructions type="update" fromversion="2.1.0 RC 1">
- <instruction type="file">files_update.tar</instruction>
+ <instructions type="update" fromversion="2.1.0 RC 2">
+ <instruction type="file" run="standalone">files_update.tar</instruction>
<instruction type="template">templates_update.tar</instruction>
- <instruction type="script">acp/update_accessibleGroups_com.woltlab.wcf_2.1.0_rc_2.php</instruction>
+ <instruction type="language" run="standalone">language/*.xml</instruction>
+ <instruction type="bbcode">bbcode.xml</instruction>
+ <instruction type="coreObject">coreObject.xml</instruction>
<instruction type="option">option.xml</instruction>
<instruction type="userGroupOption">userGroupOption.xml</instruction>
-
- <instruction type="language" run="standalone">language/*.xml</instruction>
</instructions>
</package>
+++ /dev/null
-<?php
-use wcf\system\WCF;
-
-/**
- * @author Alexander Ebert
- * @copyright 2001-2015 WoltLab GmbH
- * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @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();