From: Matthias Schmidt Date: Mon, 21 Dec 2015 16:20:57 +0000 (+0100) Subject: Remove version number from installation script filename X-Git-Tag: 3.0.0_Beta_1~158 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e2e1cbcb6d7fa3abbc2d27b31de1a9d83fbd6ba3;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.conversation.git Remove version number from installation script filename --- diff --git a/files/acp/install_com.woltlab.wcf.conversation.php b/files/acp/install_com.woltlab.wcf.conversation.php new file mode 100644 index 0000000..956644e --- /dev/null +++ b/files/acp/install_com.woltlab.wcf.conversation.php @@ -0,0 +1,31 @@ + + */ +// set default mod permissions +$group = new UserGroup(5); +if ($group->groupID) { + $sql = "REPLACE INTO wcf".WCF_N."_user_group_option_value + (groupID, optionID, optionValue) + SELECT 5, optionID, 1 + FROM wcf".WCF_N."_user_group_option + WHERE optionName LIKE 'mod.conversation.%'"; + $statement = WCF::getDB()->prepareStatement($sql); + $statement->execute(); +} + +$group = new UserGroup(6); +if ($group->groupID) { + $sql = "REPLACE INTO wcf".WCF_N."_user_group_option_value + (groupID, optionID, optionValue) + SELECT 6, optionID, 1 + FROM wcf".WCF_N."_user_group_option + WHERE optionName LIKE 'mod.conversation.%'"; + $statement = WCF::getDB()->prepareStatement($sql); + $statement->execute(); +} diff --git a/files/acp/install_com.woltlab.wcf.conversation_2.0.0.php b/files/acp/install_com.woltlab.wcf.conversation_2.0.0.php deleted file mode 100644 index 956644e..0000000 --- a/files/acp/install_com.woltlab.wcf.conversation_2.0.0.php +++ /dev/null @@ -1,31 +0,0 @@ - - */ -// set default mod permissions -$group = new UserGroup(5); -if ($group->groupID) { - $sql = "REPLACE INTO wcf".WCF_N."_user_group_option_value - (groupID, optionID, optionValue) - SELECT 5, optionID, 1 - FROM wcf".WCF_N."_user_group_option - WHERE optionName LIKE 'mod.conversation.%'"; - $statement = WCF::getDB()->prepareStatement($sql); - $statement->execute(); -} - -$group = new UserGroup(6); -if ($group->groupID) { - $sql = "REPLACE INTO wcf".WCF_N."_user_group_option_value - (groupID, optionID, optionValue) - SELECT 6, optionID, 1 - FROM wcf".WCF_N."_user_group_option - WHERE optionName LIKE 'mod.conversation.%'"; - $statement = WCF::getDB()->prepareStatement($sql); - $statement->execute(); -} diff --git a/package.xml b/package.xml index 2925ad3..44b4cb5 100644 --- a/package.xml +++ b/package.xml @@ -34,6 +34,6 @@ - acp/install_com.woltlab.wcf.conversation_2.0.0.php + acp/install_com.woltlab.wcf.conversation.php