Remove version number from installation script filename
authorMatthias Schmidt <gravatronics@live.com>
Mon, 21 Dec 2015 16:20:57 +0000 (17:20 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 21 Dec 2015 16:20:57 +0000 (17:20 +0100)
files/acp/install_com.woltlab.wcf.conversation.php [new file with mode: 0644]
files/acp/install_com.woltlab.wcf.conversation_2.0.0.php [deleted file]
package.xml

diff --git a/files/acp/install_com.woltlab.wcf.conversation.php b/files/acp/install_com.woltlab.wcf.conversation.php
new file mode 100644 (file)
index 0000000..956644e
--- /dev/null
@@ -0,0 +1,31 @@
+<?php
+use wcf\data\user\group\UserGroup;
+use wcf\system\WCF;
+
+/**
+ * @author     Matthias Schmidt
+ * @copyright  2001-2015 WoltLab GmbH
+ * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ */
+// 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 (file)
index 956644e..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-use wcf\data\user\group\UserGroup;
-use wcf\system\WCF;
-
-/**
- * @author     Matthias Schmidt
- * @copyright  2001-2015 WoltLab GmbH
- * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- */
-// 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();
-}
index 2925ad3754ce54a12d8e4544852d418895af3595..44b4cb59856f05b5714344ce2afe2a1713c3765c 100644 (file)
@@ -34,6 +34,6 @@
                <instruction type="userNotificationEvent" />
                <instruction type="userOption" />
                <instruction type="eventListener" />
-               <instruction type="script">acp/install_com.woltlab.wcf.conversation_2.0.0.php</instruction>
+               <instruction type="script">acp/install_com.woltlab.wcf.conversation.php</instruction>
        </instructions>
 </package>