]> git.mxchange.org Git - friendica.git/blobdiff - mod/tagger.php
Merge pull request #3568 from tobiasd/20170707-esde
[friendica.git] / mod / tagger.php
index 4055edddbd1959f5d2421fb6219fe10ffc674108..e6619f9fe2d37a148724da85467a21fcca81176f 100644 (file)
@@ -1,11 +1,12 @@
 <?php
 
+use Friendica\App;
+
 require_once('include/security.php');
 require_once('include/bbcode.php');
 require_once('include/items.php');
 
-
-function tagger_content(&$a) {
+function tagger_content(App $a) {
 
        if(! local_user() && ! remote_user()) {
                return;
@@ -94,8 +95,9 @@ EOT;
 
        $bodyverb = t('%1$s tagged %2$s\'s %3$s with %4$s');
 
-       if(! isset($bodyverb))
-                       return;
+       if (! isset($bodyverb)) {
+               return;
+       }
 
        $termlink = html_entity_decode('&#x2317;') . '[url=' . App::get_baseurl() . '/search?tag=' . urlencode($term) . ']'. $term . '[/url]';