X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ffbrowser.php;h=81284d6b91ef27d654d9c078d2333ab295b41176;hb=1eadcb48552ef0ae1f0bae22103c77b21e2ec517;hp=d918021cf2d6e880c6151c337cdee6e2d58d4979;hpb=3d8e82d95d9cc76b45a8db301b22c4111f335e1c;p=friendica.git diff --git a/mod/fbrowser.php b/mod/fbrowser.php index d918021cf2..81284d6b91 100644 --- a/mod/fbrowser.php +++ b/mod/fbrowser.php @@ -24,6 +24,7 @@ use Friendica\App; use Friendica\Core\Renderer; +use Friendica\Core\System; use Friendica\Database\DBA; use Friendica\DI; use Friendica\Model\Photo; @@ -38,11 +39,11 @@ use Friendica\Util\Strings; function fbrowser_content(App $a) { if (!local_user()) { - exit(); + System::exit(); } if (DI::args()->getArgc() == 1) { - exit(); + System::exit(); } // Needed to match the correct template in a module that uses a different theme than the user/site/default @@ -153,7 +154,6 @@ function fbrowser_content(App $a) if (!empty($_GET['mode'])) { return $o; } else { - echo $o; - exit(); + System::httpExit($o); } }