mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-12 19:38:49 +00:00
Update function calls
update function calls and remove require_once
This commit is contained in:
parent
7ab2479166
commit
7b95efedd1
5 changed files with 24 additions and 28 deletions
|
@ -10,6 +10,7 @@
|
|||
require_once 'library/OAuth1.php';
|
||||
require_once 'addon/tumblr/tumblroauth/tumblroauth.php';
|
||||
|
||||
use Friendica\Content\Text\Plaintext;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
|
@ -358,9 +359,8 @@ function tumblr_send(&$a,&$b) {
|
|||
$tags = implode(',',$tag_arr);
|
||||
|
||||
$title = trim($b['title']);
|
||||
require_once('include/plaintext.php');
|
||||
|
||||
$siteinfo = get_attached_data($b["body"]);
|
||||
$siteinfo = Plaintext::getAttachedData($b["body"]);
|
||||
|
||||
$params = [
|
||||
'state' => 'published',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue