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

@ -14,6 +14,7 @@ use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Database\DBA;
use Friendica\Util\Network;
use Friendica\Util\XML;
function wppost_install() {
Addon::registerHook('post_local', 'addon/wppost/wppost.php', 'wppost_post_local');
@ -216,8 +217,8 @@ function wppost_send(&$a,&$b) {
return;
}
$wp_username = xmlify(PConfig::get($b['uid'],'wppost','wp_username'));
$wp_password = xmlify(PConfig::get($b['uid'],'wppost','wp_password'));
$wp_username = XML::(PConfig::get($b['uid'], 'wppost', 'wp_username'));
$wp_password = XML::xmlify(PConfig::get($b['uid'], 'wppost',' wp_password'));
$wp_blog = PConfig::get($b['uid'],'wppost','wp_blog');
$wp_backlink_text = PConfig::get($b['uid'],'wppost','wp_backlink_text');
if ($wp_backlink_text == '') {
@ -294,7 +295,7 @@ function wppost_send(&$a,&$b) {
. $wp_backlink_text . '</a>' . EOL . EOL;
}
$post = xmlify($post);
$post = XML::xmlify($post);
$xml = <<< EOT