Add trophy module option
authorJoshua Rüsweg <josh@bastelstu.be>
Wed, 28 Jun 2017 14:06:55 +0000 (16:06 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Wed, 28 Jun 2017 14:06:55 +0000 (16:06 +0200)
See #2315

com.woltlab.wcf/option.xml
constants.php
wcfsetup/install/files/lib/data/trophy/Trophy.class.php
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index fbfdfc55810edcdc76d36c92f710abc1e3b2053e..cd34b70350079ec8237d140c49aca98e7d5535cb 100644 (file)
                                <defaultvalue>1</defaultvalue>
                        </option>
                        
+                       <option name="module_trophy">
+                               <categoryname>module.user</categoryname>
+                               <optiontype>boolean</optiontype>
+                               <defaultvalue>1</defaultvalue>
+                       </option>
+                       
                        <option name="module_tagging">
                                <categoryname>module.content</categoryname>
                                <optiontype>boolean</optiontype>
index fc5737c7e50832bb832d6c6eb035e1f503f7877d..e801547f1fe38ccd54e5538149b2346cee0bb4e2 100644 (file)
@@ -226,3 +226,4 @@ define('ENABLE_DESKTOP_NOTIFICATIONS', 1);
 define('FB_SHARE_APP_ID', '');
 define('MODULE_CONTACT_FORM', 0);
 define('SITEMAP_INDEX_TIME_FRAME', 365);
+define('MODULE_TROPHY', 1);
index 5d781ebdb53482fde6b0f07667608933582af705..a19ce19f84c55d2da53dc5ac7de13fe5ee2d1988 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 namespace wcf\data\trophy;
-use wcf\data\DatabaseObject;
-use wcf\data\ITitledLinkObject;
 use wcf\data\trophy\category\TrophyCategory;
 use wcf\data\trophy\category\TrophyCategoryCache;
+use wcf\data\DatabaseObject;
+use wcf\data\ITitledLinkObject;
 use wcf\system\event\EventHandler;
 use wcf\system\request\IRouteController;
 use wcf\system\request\LinkHandler;
index 5cb93de53acd1db8f814f4193d88192d27bb17a2..5b3720a760c49874e72d03f8c7c82914b7129213 100644 (file)
@@ -1300,7 +1300,7 @@ GmbH=Gesellschaft mit beschränkter Haftung]]></item>
                <item name="wcf.acp.option.enable_desktop_notifications"><![CDATA[Desktop-Benachrichtigungen verwenden]]></item>
                <item name="wcf.acp.option.enable_desktop_notifications.description"><![CDATA[Neue Benachrichtigungen, die im Hintergrund aberufen wurden, werden als kleines Benachrichtigungsfenster unmittelbar angezeigt. Einige wenige Browser, z. B. Internet Explorer, unterstützen diese Funktion nicht.]]></item>
                <item name="wcf.acp.option.module_contact_form"><![CDATA[Kontakt-Formular aktivieren]]></item>
-               <item name="wcf.acp.option.module_contact_form.description"><![CDATA[Aktiviert das Kontakt-Formular, nach Aktivierung können Sie die <a href="{link controller='ContactSettings'}{/link}">Eingabefelder und Empfänger</a> individuell konfigurieren.]]></item>
+               <item name="wcf.acp.option.module_trophy"><![CDATA[Trophäen]]></item>
        </category>
        
        <category name="wcf.acp.customOption">
index b30a12172ca15ca32a80eb1c45767bd2668118ea..ac89e31e6c7722bf6c71f070ffe0676c7fb813cc 100644 (file)
                <item name="wcf.acp.option.enable_desktop_notifications.description"><![CDATA[Display a small window for new notifications that have been retrieved in the background. May not be supported in some browsers, e.g. Internet Explorer.]]></item>
                <item name="wcf.acp.option.module_contact_form"><![CDATA[Enable contact form]]></item>
                <item name="wcf.acp.option.module_contact_form.description"><![CDATA[Enables the contact form, once enabled you can customize the <a href="{link controller='ContactSettings'}{/link}">input fields and recipients</a> to better suit your needs.]]></item>
+               <item name="wcf.acp.option.module_trophy"><![CDATA[Trophies]]></item>
        </category>
        
        <category name="wcf.acp.customOption">