aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profile.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-20 21:26:18 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-20 21:26:18 -0700
commitb9247f1dcccd18bcfa402852f5ab7878cef8d105 (patch)
tree8778ca96c130267ee5961cf862d64ca8a7d28fe1 /mod/profile.php
parentcd61b46009c52c20b56931f26a05e70bd13ae740 (diff)
downloadvolse-hubzilla-b9247f1dcccd18bcfa402852f5ab7878cef8d105.tar.gz
volse-hubzilla-b9247f1dcccd18bcfa402852f5ab7878cef8d105.tar.bz2
volse-hubzilla-b9247f1dcccd18bcfa402852f5ab7878cef8d105.zip
fix layout issues, deletable items and wall-wall
Diffstat (limited to 'mod/profile.php')
-rw-r--r--mod/profile.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/profile.php b/mod/profile.php
index 0d9c94eed..4adcd29f6 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -249,6 +249,9 @@ function profile_content(&$a, $update = 0) {
$tpl = file_get_contents('view/wall_item.tpl');
+ $droptpl = file_get_contents('view/wall_item_drop.tpl');
+ $fakedrop = file_get_contents('view/wall_fake_drop.tpl');
+
if($update)
$return_url = $_SESSION['return_url'];
else
@@ -333,9 +336,12 @@ function profile_content(&$a, $update = 0) {
$profile_link = $profile_url;
$drop = '';
+ $dropping = false;
if(($item['contact-id'] == $_SESSION['visitor_id']) || ($item['uid'] == $_SESSION['uid']))
- $drop = replace_macros(file_get_contents('view/wall_item_drop.tpl'), array('$id' => $item['id']));
+ $dropping = true;
+
+ $drop = replace_macros((($dropping)? $droptpl : $fakedrop), array('$id' => $item['id']));
$like = (($alike[$item['id']]) ? format_like($alike[$item['id']],$alike[$item['id'] . '-l'],'like',$item['id']) : '');