]> 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 fc7ba74d5948ba1582ea8474434a5a94cf43c3af..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,8 +72,7 @@ class Attach extends BaseModule
                }
 
                echo $data;
-               DI::page()->logRuntime();
-               exit();
+               System::exit();
                // NOTREACHED
        }
 }