]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Widget/TagCloud.php
Merge pull request #8036 from nupplaphil/task/redundant_system_call
[friendica.git] / src / Content / Widget / TagCloud.php
index 8413eccd19c8d13e7a4e57414b7644d9d91ed0d1..15ed41a35cfa73196710445c800572cfbb9ef4dc 100644 (file)
@@ -8,8 +8,8 @@ namespace Friendica\Content\Widget;
 
 use Friendica\Core\L10n;
 use Friendica\Core\Renderer;
-use Friendica\Core\System;
 use Friendica\Database\DBA;
+use Friendica\DI;
 use Friendica\Model\Item;
 
 /**
@@ -38,7 +38,7 @@ class TagCloud
                $r = self::tagadelic($uid, $count, $owner_id, $flags, $type);
                if (count($r)) {
                        $contact = DBA::selectFirst('contact', ['url'], ['uid' => $uid, 'self' => true]);
-                       $url = System::removedBaseUrl($contact['url']);
+                       $url = DI::baseUrl()->remove($contact['url']);
 
                        $tags = [];
                        foreach ($r as $rr) {
@@ -49,7 +49,7 @@ class TagCloud
                                $tags[] = $tag;
                        }
 
-                       $tpl = Renderer::getMarkupTemplate('tagblock_widget.tpl');
+                       $tpl = Renderer::getMarkupTemplate('widget/tagcloud.tpl');
                        $o = Renderer::replaceMacros($tpl, [
                                '$title' => L10n::t('Tags'),
                                '$tags' => $tags