]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Item/Ignore.php
Fix crepair links
[friendica.git] / src / Module / Item / Ignore.php
index 75b2a7bd35bd9a71c71ef24dfc5f3e0264797125..a9e79cdd611594b47d942c910d12822895b305ea 100644 (file)
@@ -2,12 +2,9 @@
 
 namespace Friendica\Module\Item;
 
-use Friendica\App;
 use Friendica\BaseModule;
-use Friendica\Core\L10n\L10n;
 use Friendica\Core\Session;
 use Friendica\Core\System;
-use Friendica\Database\Database;
 use Friendica\DI;
 use Friendica\Model\Item;
 use Friendica\Network\HTTPException;
@@ -19,17 +16,14 @@ class Ignore extends BaseModule
 {
        public static function rawContent(array $parameters = [])
        {
-               /** @var L10n $l10n */
-               $l10n = self::getClass(L10n::class);
+               $l10n = DI::l10n();
 
                if (!Session::isAuthenticated()) {
                        throw new HttpException\ForbiddenException($l10n->t('Access denied.'));
                }
 
-               /** @var App\Arguments $args */
-               $args = self::getClass(App\Arguments::class);
-               /** @var Database $dba */
-               $dba = self::getClass(Database::class);
+               $args = DI::args();
+               $dba = DI::dba();
 
                $message_id = intval($args->get(2));
 
@@ -70,7 +64,7 @@ class Ignore extends BaseModule
                                $rand = "?$rand";
                        }
 
-                       DI::app()->internalRedirect($return_path . $rand);
+                       DI::baseUrl()->redirect($return_path . $rand);
                }
 
                // the json doesn't really matter, it will either be 0 or 1