update function calls

update function calls to new class
This commit is contained in:
Adam Magness 2018-11-05 07:47:04 -05:00
parent 7f1fda43ae
commit b8df74beca
7 changed files with 25 additions and 25 deletions

View file

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