X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fphotos.php;h=a191dcf0712562cd5222233024f8b20d9d2be7dc;hb=0c9cc29a51941eb572bf16fd5489d0947d47d033;hp=4761b627d8c51bb228ee071e887b5879ad72f807;hpb=206c26ae30e711aa30cdb29d668bee9dce834c28;p=friendica.git diff --git a/mod/photos.php b/mod/photos.php index 4761b627d8..a191dcf071 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -8,6 +8,7 @@ require_once('include/security.php'); require_once('include/redir.php'); require_once('include/tags.php'); require_once('include/threads.php'); +require_once('include/Probe.php'); function photos_init(&$a) { @@ -305,7 +306,7 @@ function photos_post(&$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); } } } @@ -375,7 +376,7 @@ function photos_post(&$a) { $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); } } @@ -552,7 +553,7 @@ function photos_post(&$a) { $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') @@ -718,7 +719,7 @@ function photos_post(&$a) { $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); } } @@ -934,7 +935,7 @@ function photos_post(&$a) { $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)); @@ -1306,11 +1307,10 @@ function photos_content(&$a) { '$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; } @@ -1887,10 +1887,9 @@ function photos_content(&$a) { '$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; }