Merge pull request #4399 from MrPetovan/task/3878-move-include-bbcode-to-src

Move include/bbcode to src/ part 1 : Everything but bbcode()
This commit is contained in:
Tobias Diekershoff 2018-02-07 07:18:39 +01:00 committed by GitHub
commit 85c8bf0228
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 1615 additions and 1505 deletions

View file

@ -10,6 +10,7 @@ namespace Friendica\Protocol;
use Friendica\App;
use Friendica\Content\OEmbed;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Addon;
use Friendica\Core\Config;
use Friendica\Core\L10n;
@ -29,8 +30,6 @@ use Friendica\Util\Crypto;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
use Friendica\Util\XML;
use Friendica\Content\Text\BBCode;
use dba;
use DOMDocument;
use DOMXPath;
@ -929,7 +928,7 @@ class DFRN
}
// Remove the abstract element. It is only locally important.
$body = remove_abstract($body);
$body = BBCode::stripAbstract($body);
if ($type == 'html') {
$htmlbody = $body;