From: Alexander Ebert Date: Thu, 6 Dec 2018 15:33:54 +0000 (+0100) Subject: `BBCodeHandler::getSourceBBCodes()` is no longer supported X-Git-Tag: 3.1.7~25 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=722c62aef068014725e8305be8f4f6f555c87cb4;p=GitHub%2FWoltLab%2FWCF.git `BBCodeHandler::getSourceBBCodes()` is no longer supported Fixes #2780 --- diff --git a/wcfsetup/install/files/lib/system/bbcode/BBCodeHandler.class.php b/wcfsetup/install/files/lib/system/bbcode/BBCodeHandler.class.php index b4b6a638c2..7c4ccafa12 100644 --- a/wcfsetup/install/files/lib/system/bbcode/BBCodeHandler.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/BBCodeHandler.class.php @@ -104,27 +104,10 @@ class BBCodeHandler extends SingletonFactory { * Returns a list of BBCodes which contain raw code (disabled BBCode parsing) * * @return BBCode[] + * @deprecated 3.1 - This method is no longer supported. */ public function getSourceBBCodes() { - if (empty($this->allowedBBCodes)) { - return []; - } - - if ($this->sourceBBCodes === null) { - $this->sourceBBCodes = []; - - foreach (BBCodeCache::getInstance()->getBBCodes() as $bbcode) { - if (!$bbcode->isSourceCode) { - continue; - } - - if ($this->isAvailableBBCode($bbcode->bbcodeTag)) { - $this->sourceBBCodes[] = $bbcode; - } - } - } - - return $this->sourceBBCodes; + return []; } /**