]> git.mxchange.org Git - friendica.git/blobdiff - mod/tagger.php
Implement functions
[friendica.git] / mod / tagger.php
index edfcd7bd13e45a910ef13c51aa3a8a07adad6df8..8b7e7d00402fb8e5910372fd21faa65fe4c51508 100644 (file)
@@ -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>