Remove and disable like_show_summary option
authorJoshua Rüsweg <josh@bastelstu.be>
Thu, 2 Aug 2018 08:25:53 +0000 (10:25 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Thu, 2 Aug 2018 08:25:53 +0000 (10:25 +0200)
See #2508

com.woltlab.wcf/option.xml
wcfsetup/install/files/acp/update-com.woltlab.wcf_3.2_reactionUpdate.php [new file with mode: 0644]

index 1e2b12c93678719aae776f94cab2cc6120857a79..f377915e8bffe6f5e410c2ddf9a26f9aca676a3a 100644 (file)
@@ -1450,8 +1450,9 @@ DESC:wcf.global.sortOrder.descending</selectoptions>
                        <option name="like_show_summary">
                                <categoryname>message.general.likes</categoryname>
                                <optiontype>boolean</optiontype>
-                               <defaultvalue>1</defaultvalue>
+                               <defaultvalue>0</defaultvalue>
                                <options>module_like</options>
+                               <hidden>1</hidden>
                        </option>
                        
                        <option name="message_sidebar_enable_online_status">
diff --git a/wcfsetup/install/files/acp/update-com.woltlab.wcf_3.2_reactionUpdate.php b/wcfsetup/install/files/acp/update-com.woltlab.wcf_3.2_reactionUpdate.php
new file mode 100644 (file)
index 0000000..9824288
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+use wcf\data\option\OptionEditor;
+
+/**
+ * @author     Joshua Ruesweg
+ * @copyright  2001-2018 WoltLab GmbH
+ * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package    WoltLabSuite\Core
+ */
+
+// disable the deprecated option `like_show_summary`
+OptionEditor::import([
+       'like_show_summary' => 0
+]);