diff options
Diffstat (limited to 'mod/profile.php')
-rw-r--r-- | mod/profile.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/profile.php b/mod/profile.php index a464b7c06..c0989bd28 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -267,6 +267,7 @@ function profile_content(&$a, $update = 0) { $cmnt_tpl = load_view_file('view/comment_item.tpl'); $like_tpl = load_view_file('view/like.tpl'); + $noshare_tpl = load_view_file('view/like_noshare.tpl'); $tpl = load_view_file('view/wall_item.tpl'); @@ -309,7 +310,7 @@ function profile_content(&$a, $update = 0) { if(can_write_wall($a,$a->profile['profile_uid'])) { if($item['id'] == $item['parent']) { - $likebuttons = replace_macros($like_tpl,array( + $likebuttons = replace_macros((($item['private']) ? $noshare_tpl : $like_tpl),array( '$id' => $item['id'], '$likethis' => t("I like this \x28toggle\x29"), '$nolike' => t("I don't like this \x28toggle\x29"), |