X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwall_attach.php;h=43f4681df336e226c346f559f22bbf5ba66157d5;hb=28e2eab7aee3ab5dac11fcc62be595b9a1c2df8b;hp=6dfa40b09588da9b58132deb82dddaca7966ec76;hpb=4016a576d55d2e9b4b3acbe515a73b8c025ef215;p=friendica.git diff --git a/mod/wall_attach.php b/mod/wall_attach.php index 6dfa40b095..43f4681df3 100644 --- a/mod/wall_attach.php +++ b/mod/wall_attach.php @@ -67,16 +67,14 @@ function wall_attach_post(App $a) { System::jsonExit(['error' => DI::l10n()->t('Permission denied.')]); } notice(DI::l10n()->t('Permission denied.') . EOL ); - DI::page()->logRuntime(); - exit(); + System::exit(); } if (empty($_FILES['userfile'])) { if ($r_json) { System::jsonExit(['error' => DI::l10n()->t('Invalid request.')]); } - DI::page()->logRuntime(); - exit(); + System::exit(); } $src = $_FILES['userfile']['tmp_name']; @@ -99,8 +97,7 @@ function wall_attach_post(App $a) { } else { notice($msg); } - DI::page()->logRuntime(); - exit(); + System::exit(); } if ($maxfilesize && $filesize > $maxfilesize) { @@ -111,8 +108,7 @@ function wall_attach_post(App $a) { } else { echo $msg . EOL; } - DI::page()->logRuntime(); - exit(); + System::exit(); } $newid = Attach::storeFile($src, $page_owner_uid, $filename, '<' . $page_owner_cid . '>'); @@ -126,8 +122,7 @@ function wall_attach_post(App $a) { } else { echo $msg . EOL; } - DI::page()->logRuntime(); - exit(); + System::exit(); } if ($r_json) { @@ -137,7 +132,6 @@ function wall_attach_post(App $a) { $lf = "\n"; echo $lf . $lf . '[attachment]' . $newid . '[/attachment]' . $lf; - DI::page()->logRuntime(); - exit(); + System::exit(); // NOTREACHED }