Add support for HTML in category descriptions
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / category / AbstractCategoryType.class.php
index 2508fbd73baa2ef6b2cea71f1d532cdf619ce1c0..dc7d5879d43d0849b0ed67957da92ec076a361b6 100644 (file)
@@ -9,7 +9,7 @@ use wcf\system\WCF;
  * Abstract implementation of a category type.
  * 
  * @author     Matthias Schmidt
- * @copyright  2001-2017 WoltLab GmbH
+ * @copyright  2001-2018 WoltLab GmbH
  * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
  * @package    WoltLabSuite\Core\System\Category
  */
@@ -45,7 +45,7 @@ abstract class AbstractCategoryType extends SingletonFactory implements ICategor
        protected $permissionPrefix = '';
        
        /**
-        * maximum category nesting lebel
+        * maximum category nesting label
         * @var integer
         */
        protected $maximumNestingLevel = -1;
@@ -75,6 +75,13 @@ abstract class AbstractCategoryType extends SingletonFactory implements ICategor
                }
        }
        
+       /**
+        * @inheritDoc
+        */
+       public function beforeDeletion(CategoryEditor $categoryEditor) {
+               // does nothing
+       }
+       
        /**
         * @inheritDoc
         */
@@ -177,4 +184,12 @@ abstract class AbstractCategoryType extends SingletonFactory implements ICategor
        public function hasDescription() {
                return $this->hasDescription;
        }
+       
+       /**
+        * @inheritDoc
+        * @since       5.2
+        */
+       public function supportsHtmlDescription() {
+               return false;
+       }
 }