projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f967c9
)
Expose `getRemoveLinks()` in `BBCodeParser` for backwards compatibility
author
Alexander Ebert
<ebert@woltlab.com>
Sat, 8 Feb 2020 14:56:19 +0000
(15:56 +0100)
committer
Alexander Ebert
<ebert@woltlab.com>
Sat, 8 Feb 2020 14:56:19 +0000
(15:56 +0100)
wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php
patch
|
blob
|
blame
|
history
wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php
patch
|
blob
|
blame
|
history
wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php
patch
|
blob
|
blame
|
history
diff --git
a/wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php
b/wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php
index 0689479aa6817d2797e812775fee935dd72cb225..38f7483927f420f2b79afd8f595c4f3fba2280b8 100644
(file)
--- 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 75683fdd2c203ec51c03940da71b9eb9f3cfe581..6e32a0eda435b1cd9ea25a3af318d0f869503dec 100644
(file)
--- 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 c89e216346c37e79c7f308539678e0fc52db5680..1bdbe2907ad0b0a02ad94efffca75965fd42c1bb 100644
(file)
--- 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 <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 {
/**