From dfc88a41df427bbf6b0b2d41105131aee15b09c5 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 22 Apr 2015 12:21:33 +0200 Subject: fix webpages profile_tabs --- mod/webpages.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'mod/webpages.php') diff --git a/mod/webpages.php b/mod/webpages.php index 44b4ee561..e39e6764b 100644 --- a/mod/webpages.php +++ b/mod/webpages.php @@ -80,13 +80,10 @@ function webpages_content(&$a) { if(! $layout) $layout = 'choose'; - // Create a status editor (for now - we'll need a WYSIWYG eventually) to create pages // Nickname is set to the observers xchan, and profile_uid to the owner's. // This lets you post pages at other people's channels. - - if((! $channel) && ($uid) && ($uid == $a->profile_uid)) { $channel = $a->get_channel(); } @@ -101,8 +98,8 @@ function webpages_content(&$a) { else $channel_acl = array(); - - $o = profile_tabs($a,true); + $_is_owner = (local_channel() && (local_channel() == $owner)); + $o = profile_tabs($a,$_is_owner, $a->profile['channel_address']); $x = array( 'webpage' => ITEM_WEBPAGE, -- cgit v1.2.3