use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Worker;
+use Friendica\Database\DBM;
require_once('include/security.php');
require_once('include/bbcode.php');
intval($uid)
);
- if (! dbm::is_result($r)) {
+ if (! DBM::is_result($r)) {
logger('poke: no contact ' . $contact_id);
return;
}
intval($parent),
intval($uid)
);
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
$parent_uri = $r[0]['uri'];
$private = $r[0]['private'];
$allow_cid = $r[0]['allow_cid'];
$uri = item_new_uri($a->get_hostname(),$uid);
- $arr = array();
+ $arr = [];
$arr['guid'] = get_guid(32);
$arr['uid'] = $uid;
// intval($uid),
// intval($item_id)
//);
- Worker::add(PRIORITY_HIGH, "notifier", "tag", $item_id);
+ Worker::add(PRIORITY_HIGH, "Notifier", "tag", $item_id);
}
call_hooks('post_local_end', $arr);
- Worker::add(PRIORITY_HIGH, "notifier", "like", $post_id);
+ Worker::add(PRIORITY_HIGH, "Notifier", "like", $post_id);
return;
}
intval($_GET['c']),
intval(local_user())
);
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
$name = $r[0]['name'];
$id = $r[0]['id'];
}
$base = System::baseUrl();
$head_tpl = get_markup_template('poke_head.tpl');
- $a->page['htmlhead'] .= replace_macros($head_tpl,array(
+ $a->page['htmlhead'] .= replace_macros($head_tpl,[
'$baseurl' => System::baseUrl(true),
'$base' => $base
- ));
+ ]);
$parent = ((x($_GET,'parent')) ? intval($_GET['parent']) : '0');
$verbs = get_poke_verbs();
- $shortlist = array();
+ $shortlist = [];
foreach($verbs as $k => $v)
if($v[1] !== 'NOTRANSLATION')
- $shortlist[] = array($k,$v[1]);
+ $shortlist[] = [$k,$v[1]];
$tpl = get_markup_template('poke_content.tpl');
- $o = replace_macros($tpl,array(
+ $o = replace_macros($tpl,[
'$title' => t('Poke/Prod'),
'$desc' => t('poke, prod or do other things to somebody'),
'$clabel' => t('Recipient'),
'$submit' => t('Submit'),
'$name' => $name,
'$id' => $id
- ));
+ ]);
return $o;