Implement xml functions

implement functions moved to xml class
This commit is contained in:
Adam Magness 2018-11-03 13:16:21 -04:00
parent 0c9ea00439
commit 1a2b0b2565
7 changed files with 30 additions and 22 deletions

View file

@ -17,6 +17,7 @@ use Friendica\Core\PConfig;
use Friendica\Database\DBA;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
use Friendica\Util\XML;
function dwpost_install()
{
@ -189,7 +190,7 @@ function dwpost_send(App $a, array &$b)
if ($dw_username && $dw_password && $dw_blog) {
$title = $b['title'];
$post = BBCode::convert($b['body']);
$post = xmlify($post);
$post = XML::xmlify($post);
$tags = dwpost_get_tags($b['tag']);
$date = DateTimeFormat::convert($b['created'], $tz);