mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 08:58:49 +00:00
Implement xml functions
implement functions moved to xml class
This commit is contained in:
parent
0c9ea00439
commit
1a2b0b2565
7 changed files with 30 additions and 22 deletions
|
@ -13,6 +13,7 @@ use Friendica\Core\L10n;
|
|||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Util\Network;
|
||||
use Friendica\Util\XML;
|
||||
|
||||
function blogger_install()
|
||||
{
|
||||
|
@ -178,14 +179,14 @@ function blogger_send(App $a, array &$b)
|
|||
return;
|
||||
}
|
||||
|
||||
$bl_username = xmlify(PConfig::get($b['uid'], 'blogger', 'bl_username'));
|
||||
$bl_password = xmlify(PConfig::get($b['uid'], 'blogger', 'bl_password'));
|
||||
$bl_username = XML::xmlify(PConfig::get($b['uid'], 'blogger', 'bl_username'));
|
||||
$bl_password = XML::xmlify(PConfig::get($b['uid'], 'blogger', 'bl_password'));
|
||||
$bl_blog = PConfig::get($b['uid'], 'blogger', 'bl_blog');
|
||||
|
||||
if ($bl_username && $bl_password && $bl_blog) {
|
||||
$title = '<title>' . (($b['title']) ? $b['title'] : L10n::t('Post from Friendica')) . '</title>';
|
||||
$post = $title . BBCode::convert($b['body']);
|
||||
$post = xmlify($post);
|
||||
$post = XML::xmlify($post);
|
||||
|
||||
$xml = <<< EOT
|
||||
<?xml version=\"1.0\" encoding=\"utf-8\"?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue