Implement functions
implement functions relocated to xml class
This commit is contained in:
@@ -10,6 +10,7 @@ use Friendica\Core\System;
|
||||
use Friendica\Core\Worker;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Util\XML;
|
||||
|
||||
require_once 'include/items.php';
|
||||
|
||||
@@ -66,7 +67,7 @@ function tagger_content(App $a) {
|
||||
}
|
||||
|
||||
$uri = Item::newURI($owner_uid);
|
||||
$xterm = xmlify($term);
|
||||
$xterm = XML::xmlify($term);
|
||||
$post_type = (($item['resource-id']) ? L10n::t('photo') : L10n::t('status'));
|
||||
$targettype = (($item['resource-id']) ? ACTIVITY_OBJ_IMAGE : ACTIVITY_OBJ_NOTE );
|
||||
|
||||
@@ -76,9 +77,9 @@ function tagger_content(App $a) {
|
||||
$href = System::baseUrl() . '/display/' . $item['guid'];
|
||||
}
|
||||
|
||||
$link = xmlify('<link rel="alternate" type="text/html" href="'. $href . '" />' . "\n") ;
|
||||
$link = XML::xmlify('<link rel="alternate" type="text/html" href="'. $href . '" />' . "\n") ;
|
||||
|
||||
$body = xmlify($item['body']);
|
||||
$body = XML::xmlify($item['body']);
|
||||
|
||||
$target = <<< EOT
|
||||
<target>
|
||||
|
||||
Reference in New Issue
Block a user