aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2012-03-19 09:34:39 +0100
committerzottel <github@zottel.net>2012-03-19 09:34:39 +0100
commit6d31e3d6ef56e22ecedccaeb6846b52da501097b (patch)
tree86518b59c0318d8057a1a8503c6354ebaa96dae3 /mod/photos.php
parentdf78c9be0bab909dfa8cf196f7aaa4ea3423be8c (diff)
parent283bc51acf479eebd54145eb639c681980f6717b (diff)
downloadvolse-hubzilla-6d31e3d6ef56e22ecedccaeb6846b52da501097b.tar.gz
volse-hubzilla-6d31e3d6ef56e22ecedccaeb6846b52da501097b.tar.bz2
volse-hubzilla-6d31e3d6ef56e22ecedccaeb6846b52da501097b.zip
Merge remote branch 'upstream/master'
Diffstat (limited to 'mod/photos.php')
-rwxr-xr-xmod/photos.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/photos.php b/mod/photos.php
index e40ae0d74..4406780d3 100755
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -1069,7 +1069,7 @@ function photos_content(&$a) {
if($can_post && ($ph[0]['uid'] == $owner_uid)) {
$tools = array(
'edit' => array($a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '/image/' . $datum . (($cmd === 'edit') ? '' : '/edit'), (($cmd === 'edit') ? t('View photo') : t('Edit photo'))),
- 'profile'=>array($a->get_baseurl() . '/profile_photo/use/'.$ph[0]['resource-id'], t('Use as profile photo')),
+ 'profile'=>array($a->get_baseurl() . '/profile_photo/use/'.$ph[0]['resource-id'] . '?form_security_token=' . get_form_security_token('profile_photo'), t('Use as profile photo')),
);
// lock