Rename class to BBCode

Rename Plaintext class to BBCode
This commit is contained in:
Adam Magness 2018-01-26 20:01:32 -05:00
parent c437b0c871
commit 177edd2b6e
5 changed files with 13 additions and 13 deletions

View file

@ -8,7 +8,7 @@
use Friendica\App;
use Friendica\Content\ContactSelector;
use Friendica\Content\Feature;
use Friendica\Content\Text\Plaintext;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Addon;
use Friendica\Core\System;
use Friendica\Core\Config;
@ -5196,7 +5196,7 @@ function api_clean_plain_items($Text)
*/
function api_clean_attachments($body)
{
$data = Plaintext::getAttachmentData($body);
$data = BBCode::getAttachmentData($body);
if (!$data) {
return $body;

View file

@ -5,7 +5,7 @@
use Friendica\App;
use Friendica\Content\Smilies;
use Friendica\Content\OEmbed;
use Friendica\Content\Text\Plaintext;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Addon;
use Friendica\Core\Cache;
use Friendica\Core\L10n;
@ -57,7 +57,7 @@ function bb_map_location($match) {
*/
function bb_attachment($return, $simplehtml = false, $tryoembed = true)
{
$data = Plaintext::getAttachmentData($return);
$data = BBCode::getAttachmentData($return);
if (!$data) {
return $return;
}
@ -120,7 +120,7 @@ function bb_attachment($return, $simplehtml = false, $tryoembed = true)
function bb_remove_share_information($Text, $plaintext = false, $nolink = false) {
$data = Plaintext::getAttachmentData($Text);
$data = BBCode::getAttachmentData($Text);
if (!$data) {
return $Text;