add link to album photo when status photo upload
This commit is contained in:
parent
d5355da368
commit
f027e7e920
1 changed files with 4 additions and 3 deletions
|
@ -20,6 +20,7 @@ function wall_upload_post(&$a) {
|
||||||
$visitor = 0;
|
$visitor = 0;
|
||||||
|
|
||||||
$page_owner_uid = $r[0]['uid'];
|
$page_owner_uid = $r[0]['uid'];
|
||||||
|
$page_owner_nick = $r[0]['nickname'];
|
||||||
$community_page = (($r[0]['page-flags'] == PAGE_COMMUNITY) ? true : false);
|
$community_page = (($r[0]['page-flags'] == PAGE_COMMUNITY) ? true : false);
|
||||||
|
|
||||||
if((local_user()) && (local_user() == $page_owner_uid))
|
if((local_user()) && (local_user() == $page_owner_uid))
|
||||||
|
@ -97,7 +98,7 @@ function wall_upload_post(&$a) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$basename = basename($filename);
|
$basename = basename($filename);
|
||||||
echo "<br /><br /><img src=\"".$a->get_baseurl(). "/photo/{$hash}-{$smallest}.jpg\" alt=\"$basename\" /><br /><br />";
|
echo '<br /><br /><a href="' . $a->get_baseurl() . '/photos/' . $page_owner_nick . '/image/' . $hash . '" ><img src="' . $a->get_baseurl() . "/photo/{$hash}-{$smallest}.jpg\" alt=\"$basename\" /></a><br /><br />";
|
||||||
|
|
||||||
killme();
|
killme();
|
||||||
return; // NOTREACHED
|
return; // NOTREACHED
|
||||||
|
|
Loading…
Reference in a new issue