]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Widget.php
Stop scrollToItem() animate twice.
[friendica.git] / src / Content / Widget.php
index 25c159a5ce63227b3ecf4f6efd7345a2c688890d..8f88a0d836f30fac17812fbca7e58d38493c8de4 100644 (file)
@@ -10,7 +10,6 @@ use Friendica\Core\L10n;
 use Friendica\Core\PConfig;
 use Friendica\Core\Protocol;
 use Friendica\Core\Renderer;
-use Friendica\Core\System;
 use Friendica\Core\Session;
 use Friendica\Database\DBA;
 use Friendica\DI;
@@ -23,7 +22,6 @@ use Friendica\Util\DateTimeFormat;
 use Friendica\Util\Proxy as ProxyUtils;
 use Friendica\Util\Strings;
 use Friendica\Util\Temporal;
-use Friendica\Util\XML;
 
 class Widget
 {
@@ -304,7 +302,7 @@ class Widget
         */
        public static function categories($baseurl, $selected = '')
        {
-               $a = \get_app();
+               $a = DI::app();
 
                $uid = intval($a->profile['profile_uid']);
 
@@ -402,7 +400,7 @@ class Widget
                $tpl = Renderer::getMarkupTemplate('widget/remote_friends_common.tpl');
                return Renderer::replaceMacros($tpl, [
                        '$desc'     => L10n::tt("%d contact in common", "%d contacts in common", $t),
-                       '$base'     => System::baseUrl(),
+                       '$base'     => DI::baseUrl(),
                        '$uid'      => $profile_uid,
                        '$cid'      => (($cid) ? $cid : '0'),
                        '$linkmore' => (($t > 5) ? 'true' : ''),
@@ -422,7 +420,7 @@ class Widget
         */
        public static function tagCloud($limit = 50)
        {
-               $a = \get_app();
+               $a = DI::app();
 
                $uid = intval($a->profile['profile_uid']);