]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Pinned.php
Remove superfluous includes in profile modules
[friendica.git] / src / Module / Pinned.php
index e4c0d2b0e71442d4df393f8d215f52d351adac2f..b28777516ef0fcacb8cb624c900ca61edaf96ae3 100644 (file)
@@ -3,6 +3,7 @@
 namespace Friendica\Module;
 
 use Friendica\BaseModule;
+use Friendica\DI;
 use Friendica\Model\Item;
 
 /**
@@ -30,7 +31,7 @@ class Pinned extends BaseModule
                $returnPath = $_REQUEST['return'] ?? '';
                if (!empty($returnPath)) {
                        $rand = '_=' . time() . (strpos($returnPath, '?') ? '&' : '?') . 'rand';
-                       self::getApp()->internalRedirect($returnPath . $rand);
+                       DI::baseUrl()->redirect($returnPath . $rand);
                }
 
                // the json doesn't really matter, it will either be 0 or 1