diff options
author | Tobias Diekershoff <tobias.diekershoff@gmx.net> | 2011-06-09 10:20:47 +0200 |
---|---|---|
committer | Tobias Diekershoff <tobias.diekershoff@gmx.net> | 2011-06-09 10:20:47 +0200 |
commit | 7ffd0ee41a70d30cadf18032f655222911304b7c (patch) | |
tree | 8951d4ac7d5a8b1d27929742890914c8c57c23e0 /mod/photos.php | |
parent | 6f9fd92c2eabd1b26182e2f7157f35e44f94dc67 (diff) | |
parent | 9203b48527050b0b4a17120a95b2b3202842d56d (diff) | |
download | volse-hubzilla-7ffd0ee41a70d30cadf18032f655222911304b7c.tar.gz volse-hubzilla-7ffd0ee41a70d30cadf18032f655222911304b7c.tar.bz2 volse-hubzilla-7ffd0ee41a70d30cadf18032f655222911304b7c.zip |
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'mod/photos.php')
-rw-r--r-- | mod/photos.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/mod/photos.php b/mod/photos.php index f1a2d635c..18fff703e 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -510,8 +510,15 @@ foreach($_FILES AS $key => $val) { $arr['target'] .= '<link>' . xmlify('<link rel="alternate" type="text/html" href="' . $a->get_baseurl() . '/photos/' . $owner_record['nickname'] . '/image/' . $p[0]['resource-id'] . '" />' . "\n" . '<link rel="preview" type="image/jpeg" href="' . $a->get_baseurl() . "/photo/" . $p[0]['resource-id'] . '-' . $best . '.jpg' . '" />') . '</link></target>'; $item_id = item_store($arr); - if($item_id) + if($item_id) { + q("UPDATE `item` SET `plink` = '%s' WHERE `uid` = %d AND `id` = %d LIMIT 1", + dbesc($a->get_baseurl() . '/display/' . $owner_record['nickname'] . '/' . $item_id), + intval($page_owner_uid), + intval($item_id) + ); + proc_run('php',"include/notifier.php","tag","$item_id"); + } } } @@ -1106,9 +1113,10 @@ function photos_content(&$a) { $tag_str .= bbcode($t); } $tags = array(t('Tags: '), $tag_str); - if($cmd === 'edit') + if($cmd === 'edit') { $tags[] = $a->get_baseurl() . '/tagrm/' . $link_item['id']; $tags[] = t('[Remove any tag]'); + } } |