X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Flockview.php;h=35c4b043329ae4284250d95a398636407a3d5d8e;hb=41663c7592abe55a958632c3a48265e0a8544d2b;hp=a2301b4ccb7e73e20b47862cc62fe74929477152;hpb=c083ae047c4259dcfa1c61a3795679bbf1b08d8c;p=friendica.git
diff --git a/mod/lockview.php b/mod/lockview.php
index a2301b4ccb..35c4b04332 100644
--- a/mod/lockview.php
+++ b/mod/lockview.php
@@ -3,7 +3,7 @@
* @file mod/lockview.php
*/
use Friendica\App;
-use Friendica\Core\Addon;
+use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Database\DBA;
use Friendica\Model\Item;
@@ -19,11 +19,11 @@ function lockview_content(App $a)
}
if (!$item_id) {
- killme();
+ exit();
}
if (!in_array($type, ['item','photo','event'])) {
- killme();
+ exit();
}
$fields = ['uid', 'allow_cid', 'allow_gid', 'deny_cid', 'deny_gid'];
@@ -37,14 +37,14 @@ function lockview_content(App $a)
}
if (!DBA::isResult($item)) {
- killme();
+ exit();
}
- Addon::callHooks('lockview_content', $item);
+ Hook::callAll('lockview_content', $item);
if ($item['uid'] != local_user()) {
echo L10n::t('Remote privacy information not available.') . '
';
- killme();
+ exit();
}
if (isset($item['private'])
@@ -55,7 +55,7 @@ function lockview_content(App $a)
&& empty($item['deny_gid']))
{
echo L10n::t('Remote privacy information not available.') . '
';
- killme();
+ exit();
}
$allowed_users = expand_acl($item['allow_cid']);
@@ -111,6 +111,6 @@ function lockview_content(App $a)
}
echo $o . implode(', ', $l);
- killme();
+ exit();
}