]> git.mxchange.org Git - friendica.git/blobdiff - mod/wall_attach.php
SV update to the strings THX viktorbagare
[friendica.git] / mod / wall_attach.php
index 6dfa40b09588da9b58132deb82dddaca7966ec76..43f4681df336e226c346f559f22bbf5ba66157d5 100644 (file)
@@ -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
 }