Implement functions
implement functions relocated to xml class
This commit is contained in:
parent
84e900d96f
commit
61bc9facc8
14 changed files with 104 additions and 94 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue