X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwall_upload.php;h=36e313cecef2e4fd5b60bee68ee1eac1c5e0ef5e;hb=89302d0843308c8fa7cc0537cb10943e8defc8ee;hp=79f1dcc41f323c8fa2853e84cb4461432cb07ab8;hpb=d15023fe4bbc404d71ad9deeccfb066c70db9ee5;p=friendica.git diff --git a/mod/wall_upload.php b/mod/wall_upload.php index 79f1dcc41f..36e313cece 100644 --- a/mod/wall_upload.php +++ b/mod/wall_upload.php @@ -89,14 +89,14 @@ function wall_upload_post(App $a, $desktopmode = true) System::jsonExit(['error' => DI::l10n()->t('Permission denied.')]); } notice(DI::l10n()->t('Permission denied.')); - exit(); + System::exit(); } if (empty($_FILES['userfile']) && empty($_FILES['media'])) { if ($r_json) { System::jsonExit(['error' => DI::l10n()->t('Invalid request.')]); } - exit(); + System::exit(); } $src = ''; @@ -148,7 +148,7 @@ function wall_upload_post(App $a, $desktopmode = true) System::jsonExit(['error' => DI::l10n()->t('Invalid request.')]); } notice(DI::l10n()->t('Invalid request.')); - exit(); + System::exit(); } $filetype = Images::getMimeTypeBySource($src, $filename, $filetype); @@ -167,7 +167,7 @@ function wall_upload_post(App $a, $desktopmode = true) } else { echo $msg. EOL; } - exit(); + System::exit(); } $Image->orient($src); @@ -205,7 +205,7 @@ function wall_upload_post(App $a, $desktopmode = true) } else { echo $msg. EOL; } - exit(); + System::exit(); } } @@ -229,7 +229,7 @@ function wall_upload_post(App $a, $desktopmode = true) } else { echo $msg. EOL; } - exit(); + System::exit(); } if ($width > 640 || $height > 640) { @@ -281,6 +281,6 @@ function wall_upload_post(App $a, $desktopmode = true) } echo "\n\n" . '[url=' . DI::baseUrl() . '/photos/' . $page_owner_nick . '/image/' . $resource_id . '][img]' . DI::baseUrl() . "/photo/{$resource_id}-{$smallest}.".$Image->getExt()."[/img][/url]\n\n"; - exit(); + System::exit(); // NOTREACHED }