Expose `getRemoveLinks()` in `BBCodeParser` for backwards compatibility
authorAlexander Ebert <ebert@woltlab.com>
Sat, 8 Feb 2020 14:56:19 +0000 (15:56 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 8 Feb 2020 14:56:19 +0000 (15:56 +0100)
wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php
wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php
wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php

index 0689479aa6817d2797e812775fee935dd72cb225..38f7483927f420f2b79afd8f595c4f3fba2280b8 100644 (file)
@@ -568,4 +568,12 @@ class BBCodeParser extends SingletonFactory {
                
                return $message;
        }
+       
+       /**
+        * @return bool
+        * @since 5.2
+        */
+       public function getRemoveLinks() {
+               return false;
+       }
 }
index 75683fdd2c203ec51c03940da71b9eb9f3cfe581..6e32a0eda435b1cd9ea25a3af318d0f869503dec 100644 (file)
@@ -429,8 +429,7 @@ class HtmlBBCodeParser extends BBCodeParser {
        }
        
        /**
-        * @return bool
-        * @since 5.2
+        * @inheritDoc
         */
        public function getRemoveLinks() {
                return $this->removeLinks;
index c89e216346c37e79c7f308539678e0fc52db5680..1bdbe2907ad0b0a02ad94efffca75965fd42c1bb 100644 (file)
@@ -13,6 +13,7 @@ use wcf\util\StringUtil;
  * @copyright  2001-2019 WoltLab GmbH
  * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
  * @package    WoltLabSuite\Core\System\Bbcode
+ * @deprecated  5.2 Use the HTML based message processing instead.
  */
 class MessageParser extends BBCodeParser {
        /**