X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fpoke.php;h=3148896bc27a8fa624bd4732bdfdf692d9b8f324;hb=421517c611834ccf4a982d319d5beb478407a9f2;hp=48eeec85a2df7419b195440268a36bc6bbce74bd;hpb=a5952e5425ee623253b2c91daa873ff6cc63bd39;p=friendica.git diff --git a/mod/poke.php b/mod/poke.php index 48eeec85a2..3148896bc2 100644 --- a/mod/poke.php +++ b/mod/poke.php @@ -1,5 +1,4 @@ ' . ACTIVITY_OBJ_PERSON . '' . $target['name'] . '' . System::baseUrl() . '/contact/' . $target['id'] . ''; $arr['object'] .= '' . xmlify('' . "\n"); @@ -132,21 +132,13 @@ function poke_init(App $a) { $arr['object'] .= xmlify('' . "\n"); $arr['object'] .= '' . "\n"; - $item_id = item_store($arr); + $item_id = Item::insert($arr); if($item_id) { - //q("UPDATE `item` SET `plink` = '%s' WHERE `uid` = %d AND `id` = %d", - // dbesc(System::baseUrl() . '/display/' . $poster['nickname'] . '/' . $item_id), - // intval($uid), - // intval($item_id) - //); Worker::add(PRIORITY_HIGH, "Notifier", "tag", $item_id); } - Addon::callHooks('post_local_end', $arr); - Worker::add(PRIORITY_HIGH, "Notifier", "like", $post_id); - return; } @@ -155,7 +147,7 @@ function poke_init(App $a) { function poke_content(App $a) { if (! local_user()) { - notice( t('Permission denied.') . EOL); + notice(L10n::t('Permission denied.') . EOL); return; } @@ -197,14 +189,14 @@ function poke_content(App $a) { $tpl = get_markup_template('poke_content.tpl'); $o = replace_macros($tpl,[ - '$title' => t('Poke/Prod'), - '$desc' => t('poke, prod or do other things to somebody'), - '$clabel' => t('Recipient'), - '$choice' => t('Choose what you wish to do to recipient'), + '$title' => L10n::t('Poke/Prod'), + '$desc' => L10n::t('poke, prod or do other things to somebody'), + '$clabel' => L10n::t('Recipient'), + '$choice' => L10n::t('Choose what you wish to do to recipient'), '$verbs' => $shortlist, '$parent' => $parent, - '$prv_desc' => t('Make this post private'), - '$submit' => t('Submit'), + '$prv_desc' => L10n::t('Make this post private'), + '$submit' => L10n::t('Submit'), '$name' => $name, '$id' => $id ]);