add use as cover photo link to photos view

This commit is contained in:
Mario Vavti
2016-03-18 17:49:31 +01:00
parent b6ae2bff01
commit bd249b276d
2 changed files with 34 additions and 14 deletions

View File

@@ -896,6 +896,7 @@ function photos_content(&$a) {
if($can_post && ($ph[0]['uid'] == $owner_uid)) {
$tools = array(
'profile'=>array($a->get_baseurl() . '/profile_photo/use/'.$ph[0]['resource_id'], t('Use as profile photo')),
'cover'=>array($a->get_baseurl() . '/cover_photo/use/'.$ph[0]['resource_id'], t('Use as cover photo')),
);
}