Remove/replace killme() with *exit()
This commit is contained in:
parent
df386800d3
commit
895b3abf32
75 changed files with 167 additions and 187 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue