]> git.mxchange.org Git - friendica.git/blobdiff - mod/wall_upload.php
Some outside code relies on returned "false"
[friendica.git] / mod / wall_upload.php
index 79f1dcc41f323c8fa2853e84cb4461432cb07ab8..36e313cecef2e4fd5b60bee68ee1eac1c5e0ef5e 100644 (file)
@@ -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
 }