require_once('include/redir.php');
require_once('include/tags.php');
require_once('include/threads.php');
+require_once('include/Probe.php');
function photos_init(&$a) {
// send the notification upstream/downstream as the case may be
if($rr['visible'])
- proc_run('php',"include/notifier.php","drop","$drop_id");
+ proc_run(PRIORITY_HIGH, "include/notifier.php", "drop", $drop_id);
}
}
}
$drop_id = intval($i[0]['id']);
if($i[0]['visible'])
- proc_run('php',"include/notifier.php","drop","$drop_id");
+ proc_run(PRIORITY_HIGH, "include/notifier.php", "drop", $drop_id);
}
}
$name = substr($tag,1);
if((strpos($name,'@')) || (strpos($name,'http://'))) {
$newname = $name;
- $links = @lrdd($name);
+ $links = @Probe::lrdd($name);
if(count($links)) {
foreach($links as $link) {
if($link['@attributes']['rel'] === 'http://webfinger.net/rel/profile-page')
$item_id = item_store($arr);
if($item_id) {
- proc_run('php',"include/notifier.php","tag","$item_id");
+ proc_run(PRIORITY_HIGH, "include/notifier.php", "tag", $item_id);
}
}
$item_id = item_store($arr);
if($visible)
- proc_run('php', "include/notifier.php", 'wall-new', $item_id);
+ proc_run(PRIORITY_HIGH, "include/notifier.php", 'wall-new', $item_id);
call_hooks('photo_post_end',intval($item_id));
'$can_post' => $can_post,
'$upload' => array(t('Upload New Photos'), 'photos/' . $a->data['user']['nickname'] . '/upload/' . bin2hex($album)),
'$order' => $order,
- '$edit' => $edit
+ '$edit' => $edit,
+ '$paginate' => paginate($a),
));
- $o .= paginate($a);
-
return $o;
}
'$can_post' => $can_post,
'$upload' => array(t('Upload New Photos'), 'photos/'.$a->data['user']['nickname'].'/upload'),
'$photos' => $photos,
+ '$paginate' => paginate($a),
));
-
- $o .= paginate($a);
return $o;
}