From: Alexander Ebert Date: Sat, 8 Feb 2020 14:56:19 +0000 (+0100) Subject: Expose `getRemoveLinks()` in `BBCodeParser` for backwards compatibility X-Git-Tag: 5.2.3~45 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4a6bfa6ad707989a3781cb5c7d9bddaf315b0915;p=GitHub%2FWoltLab%2FWCF.git Expose `getRemoveLinks()` in `BBCodeParser` for backwards compatibility --- diff --git a/wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php b/wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php index 0689479aa6..38f7483927 100644 --- a/wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php @@ -568,4 +568,12 @@ class BBCodeParser extends SingletonFactory { return $message; } + + /** + * @return bool + * @since 5.2 + */ + public function getRemoveLinks() { + return false; + } } diff --git a/wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php b/wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php index 75683fdd2c..6e32a0eda4 100644 --- a/wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php @@ -429,8 +429,7 @@ class HtmlBBCodeParser extends BBCodeParser { } /** - * @return bool - * @since 5.2 + * @inheritDoc */ public function getRemoveLinks() { return $this->removeLinks; diff --git a/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php b/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php index c89e216346..1bdbe2907a 100644 --- a/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php @@ -13,6 +13,7 @@ use wcf\util\StringUtil; * @copyright 2001-2019 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Bbcode + * @deprecated 5.2 Use the HTML based message processing instead. */ class MessageParser extends BBCodeParser { /**