fix webpages profile_tabs

This commit is contained in:
Mario Vavti 2015-04-22 12:21:33 +02:00
parent 9e490d022b
commit dfc88a41df

View File

@ -80,13 +80,10 @@ function webpages_content(&$a) {
if(! $layout) if(! $layout)
$layout = 'choose'; $layout = 'choose';
// Create a status editor (for now - we'll need a WYSIWYG eventually) to create pages // 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. // Nickname is set to the observers xchan, and profile_uid to the owner's.
// This lets you post pages at other people's channels. // This lets you post pages at other people's channels.
if((! $channel) && ($uid) && ($uid == $a->profile_uid)) { if((! $channel) && ($uid) && ($uid == $a->profile_uid)) {
$channel = $a->get_channel(); $channel = $a->get_channel();
} }
@ -101,8 +98,8 @@ function webpages_content(&$a) {
else else
$channel_acl = array(); $channel_acl = array();
$_is_owner = (local_channel() && (local_channel() == $owner));
$o = profile_tabs($a,true); $o = profile_tabs($a,$_is_owner, $a->profile['channel_address']);
$x = array( $x = array(
'webpage' => ITEM_WEBPAGE, 'webpage' => ITEM_WEBPAGE,