]> git.mxchange.org Git - friendica.git/blobdiff - mod/photos.php
Test the license check
[friendica.git] / mod / photos.php
index fa8a434c44a14382e0eaebca3344298145abdc6f..52d749bb46f841f3f37e93fc91d76506ba261dd5 100644 (file)
@@ -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();