]> git.mxchange.org Git - friendica.git/blobdiff - mod/photos.php
Remove/replace killme() with *exit()
[friendica.git] / mod / photos.php
index 3ccd3fa1119446f52ae7e0e291ba5a58339497cf..aff8041a9f6f5dfd14afe945d5ea1993f40f8096 100644 (file)
@@ -185,7 +185,7 @@ function photos_post(App $a)
 
        if (!$can_post) {
                notice(L10n::t('Permission denied.') . EOL);
-               killme();
+               exit();
        }
 
        $owner_record = User::getOwnerDataById($page_owner_uid);
@@ -193,7 +193,7 @@ function photos_post(App $a)
        if (!$owner_record) {
                notice(L10n::t('Contact information unavailable') . EOL);
                Logger::log('photos_post: unable to locate contact record for page owner. uid=' . $page_owner_uid);
-               killme();
+               exit();
        }
 
        if ($a->argc > 3 && $a->argv[2] === 'album') {
@@ -794,7 +794,7 @@ function photos_post(App $a)
                @unlink($src);
                $foo = 0;
                Addon::callHooks('photo_post_end',$foo);
-               killme();
+               exit();
        }
 
        $exif = $image->orient($src);
@@ -820,7 +820,7 @@ function photos_post(App $a)
        if (!$r) {
                Logger::log('mod/photos.php: photos_post(): image store failed', Logger::DEBUG);
                notice(L10n::t('Image upload failed.') . EOL);
-               killme();
+               exit();
        }
 
        if ($width > 640 || $height > 640) {