]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Attach.php
Provide default value for system.banner config key
[friendica.git] / src / Module / Attach.php
index 60d1015b0aeb68295b05c2f9830973af958157bd..17b2d6e9083ffff62b56bb3577db736a10c61bbd 100644 (file)
@@ -23,6 +23,7 @@ namespace Friendica\Module;
 
 use Friendica\BaseModule;
 use Friendica\Core\Logger;
+use Friendica\Core\System;
 use Friendica\DI;
 use Friendica\Model\Attach as MAttach;
 
@@ -36,7 +37,6 @@ class Attach extends BaseModule
         */
        protected function rawContent(array $request = [])
        {
-               $a = DI::app();
                if (empty($this->parameters['item'])) {
                        throw new \Friendica\Network\HTTPException\BadRequestException();
                }
@@ -72,7 +72,7 @@ class Attach extends BaseModule
                }
 
                echo $data;
-               exit();
+               System::exit();
                // NOTREACHED
        }
 }