aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-04-22 12:21:33 +0200
committerMario Vavti <mario@mariovavti.com>2015-04-22 12:21:33 +0200
commitdfc88a41df427bbf6b0b2d41105131aee15b09c5 (patch)
treebbe9d16e0840ab035e85fa244979b878988b3331 /mod
parent9e490d022b985f295a0547c8a115c610a77a3a24 (diff)
downloadvolse-hubzilla-dfc88a41df427bbf6b0b2d41105131aee15b09c5.tar.gz
volse-hubzilla-dfc88a41df427bbf6b0b2d41105131aee15b09c5.tar.bz2
volse-hubzilla-dfc88a41df427bbf6b0b2d41105131aee15b09c5.zip
fix webpages profile_tabs
Diffstat (limited to 'mod')
-rw-r--r--mod/webpages.php7
1 files changed, 2 insertions, 5 deletions
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,