]> git.mxchange.org Git - friendica.git/blobdiff - mod/tagrm.php
Replace include/event function with method calls
[friendica.git] / mod / tagrm.php
index 2a829932ea1fe07d6225d2b97a81443d01eec43c..b9991d68da5b5ff0ea4c9a7a360dfe2fe1464ed8 100644 (file)
@@ -2,14 +2,14 @@
 /**
  * @file mod/tagrm.php
  */
+
 use Friendica\App;
+use Friendica\Content\Text\BBCode;
 use Friendica\Core\L10n;
 use Friendica\Core\System;
 use Friendica\Database\DBM;
 use Friendica\Model\Item;
 
-require_once 'include/bbcode.php';
-
 function tagrm_post(App $a) {
 
        if (!local_user()) {
@@ -91,7 +91,7 @@ function tagrm_content(App $a) {
        $o .= '<ul>';
 
        foreach ($arr as $x) {
-               $o .= '<li><input type="checkbox" name="tag" value="' . bin2hex($x) . '" >' . bbcode($x) . '</input></li>';
+               $o .= '<li><input type="checkbox" name="tag" value="' . bin2hex($x) . '" >' . BBCode::convert($x) . '</input></li>';
        }
 
        $o .= '</ul>';