]> git.mxchange.org Git - friendica.git/blobdiff - mod/fbrowser.php
Merge pull request #11641 from tobiasd/20220613-lng
[friendica.git] / mod / fbrowser.php
index d918021cf2d6e880c6151c337cdee6e2d58d4979..81284d6b91ef27d654d9c078d2333ab295b41176 100644 (file)
@@ -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);
        }
 }