X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ffbrowser.php;h=60b290850a579e175630a423b01cfa2fcb830369;hb=28e2eab7aee3ab5dac11fcc62be595b9a1c2df8b;hp=d918021cf2d6e880c6151c337cdee6e2d58d4979;hpb=c588b280d7d9667d701653569d1d9fc975c90680;p=friendica.git diff --git a/mod/fbrowser.php b/mod/fbrowser.php index d918021cf2..60b290850a 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,15 +39,15 @@ 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 - $theme = Strings::sanitizeFilePathItem($_GET['theme'] ?? null); + $theme = Strings::sanitizeFilePathItem($_GET['theme'] ?? ''); if ($theme && is_file("view/theme/$theme/config.php")) { $a->setCurrentTheme($theme); } @@ -153,7 +154,6 @@ function fbrowser_content(App $a) if (!empty($_GET['mode'])) { return $o; } else { - echo $o; - exit(); + System::httpExit($o); } }