New function to exit the program
This commit is contained in:
parent
4e9d7df31a
commit
f6167b4cfd
27 changed files with 73 additions and 94 deletions
|
@ -158,8 +158,7 @@ function photos_post(App $a)
|
|||
|
||||
if (!$can_post) {
|
||||
notice(DI::l10n()->t('Permission denied.'));
|
||||
DI::page()->logRuntime();
|
||||
exit();
|
||||
System::exit();
|
||||
}
|
||||
|
||||
$owner_record = User::getOwnerDataById($page_owner_uid);
|
||||
|
@ -167,8 +166,7 @@ function photos_post(App $a)
|
|||
if (!$owner_record) {
|
||||
notice(DI::l10n()->t('Contact information unavailable'));
|
||||
DI::logger()->info('photos_post: unable to locate contact record for page owner. uid=' . $page_owner_uid);
|
||||
DI::page()->logRuntime();
|
||||
exit();
|
||||
System::exit();
|
||||
}
|
||||
|
||||
$aclFormatter = DI::aclFormatter();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue