X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsubthread.php;h=9502b7f8d090b1890f98047af109e5109983943b;hb=6ef2fd56f78b3bfe1df59bbd35bd9fdb547b3291;hp=d4b861baabd7144ee9eba7bd92e8dad4f200bd76;hpb=a0530d1066d7268f1b1ea67bc3c254e9f9fc5ec8;p=friendica.git diff --git a/mod/subthread.php b/mod/subthread.php index d4b861baab..9502b7f8d0 100644 --- a/mod/subthread.php +++ b/mod/subthread.php @@ -1,11 +1,16 @@ get_hostname(),$owner_uid); - $post_type = (($item['resource-id']) ? t('photo') : t('status')); + $post_type = (($item['resource-id']) ? L10n::t('photo') : L10n::t('status')); $objtype = (($item['resource-id']) ? ACTIVITY_OBJ_IMAGE : ACTIVITY_OBJ_NOTE ); $link = xmlify('' . "\n") ; $body = $item['body']; @@ -103,13 +108,13 @@ function subthread_content(App $a) { $body EOT; - $bodyverb = t('%1$s is following %2$s\'s %3$s'); + $bodyverb = L10n::t('%1$s is following %2$s\'s %3$s'); if (! isset($bodyverb)) { return; } - $arr = array(); + $arr = []; $arr['guid'] = get_guid(32); $arr['uri'] = $uri; @@ -143,7 +148,6 @@ EOT; $arr['deny_gid'] = $item['deny_gid']; $arr['visible'] = 1; $arr['unseen'] = 1; - $arr['last-child'] = 0; $post_id = item_store($arr); @@ -156,7 +160,7 @@ EOT; $arr['id'] = $post_id; - call_hooks('post_local_end', $arr); + Addon::callHooks('post_local_end', $arr); killme();