New function to exit the program

This commit is contained in:
Michael 2022-05-18 02:13:54 +00:00
parent 4e9d7df31a
commit f6167b4cfd
27 changed files with 73 additions and 94 deletions

View file

@ -39,13 +39,11 @@ use Friendica\Util\Strings;
function fbrowser_content(App $a)
{
if (!local_user()) {
DI::page()->logRuntime();
exit();
System::exit();
}
if (DI::args()->getArgc() == 1) {
DI::page()->logRuntime();
exit();
System::exit();
}
// Needed to match the correct template in a module that uses a different theme than the user/site/default