mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 02:48:48 +00:00
Update function calls
update function calls to new names
This commit is contained in:
parent
1a2b0b2565
commit
7f1fda43ae
7 changed files with 17 additions and 17 deletions
|
@ -170,20 +170,20 @@ function ljpost_send(&$a,&$b) {
|
|||
if($x && strlen($x[0]['timezone']))
|
||||
$tz = $x[0]['timezone'];
|
||||
|
||||
$lj_username = XML::xmlify(PConfig::get($b['uid'],'ljpost','lj_username'));
|
||||
$lj_password = XML::xmlify(PConfig::get($b['uid'],'ljpost','lj_password'));
|
||||
$lj_journal = XML::xmlify(PConfig::get($b['uid'],'ljpost','lj_journal'));
|
||||
$lj_username = XML::escape(PConfig::get($b['uid'],'ljpost','lj_username'));
|
||||
$lj_password = XML::escape(PConfig::get($b['uid'],'ljpost','lj_password'));
|
||||
$lj_journal = XML::escape(PConfig::get($b['uid'],'ljpost','lj_journal'));
|
||||
// if(! $lj_journal)
|
||||
// $lj_journal = $lj_username;
|
||||
|
||||
$lj_blog = XML::xmlify(PConfig::get($b['uid'],'ljpost','lj_blog'));
|
||||
$lj_blog = XML::escape(PConfig::get($b['uid'],'ljpost','lj_blog'));
|
||||
if(! strlen($lj_blog))
|
||||
$lj_blog = XML::xmlify('http://www.livejournal.com/interface/xmlrpc');
|
||||
$lj_blog = XML::escape('http://www.livejournal.com/interface/xmlrpc');
|
||||
|
||||
if($lj_username && $lj_password && $lj_blog) {
|
||||
$title = XML::xmlify($b['title']);
|
||||
$title = XML::escape($b['title']);
|
||||
$post = BBCode::convert($b['body']);
|
||||
$post = XML::xmlify($post);
|
||||
$post = XML::escape($post);
|
||||
$tags = ljpost_get_tags($b['tag']);
|
||||
|
||||
$date = DateTimeFormat::convert($b['created'], $tz);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue