aboutsummaryrefslogtreecommitdiffstats
path: root/mod/editwebpage.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-03-30 19:41:42 -0700
committerfriendica <info@friendica.com>2015-03-30 19:41:42 -0700
commitd3c064cc345ac66a0c3ce2c79d566740b090be8c (patch)
tree67d66b96d012df5ce4263d7a08e8a5e6f37f2a31 /mod/editwebpage.php
parentcff7696e984576718f48bd9fcdd2ecff0e7d7d73 (diff)
downloadvolse-hubzilla-d3c064cc345ac66a0c3ce2c79d566740b090be8c.tar.gz
volse-hubzilla-d3c064cc345ac66a0c3ce2c79d566740b090be8c.tar.bz2
volse-hubzilla-d3c064cc345ac66a0c3ce2c79d566740b090be8c.zip
title of preview button incorrect, fix ability to upload to webpages
Diffstat (limited to 'mod/editwebpage.php')
-rw-r--r--mod/editwebpage.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/editwebpage.php b/mod/editwebpage.php
index 3e0bd9ff4..e81cde479 100644
--- a/mod/editwebpage.php
+++ b/mod/editwebpage.php
@@ -164,11 +164,13 @@ function editwebpage_content(&$a) {
$rp = 'webpages/' . $which;
+logger('canwrite: ' . (perm_is_allowed($owner, get_observer_hash(), 'post_photos') || perm_is_allowed($owner, get_observer_hash(), 'write_storage')));
$o .= replace_macros($tpl,array(
'$return_path' => $rp,
'$webpage' => ITEM_WEBPAGE,
'$placeholdpagetitle' => t('Page link title'),
'$pagetitle' => $page_title,
+ '$writefiles' => (perm_is_allowed($owner, get_observer_hash(), 'post_photos') || perm_is_allowed($owner, get_observer_hash(), 'write_storage')),
'$action' => 'item',
'$share' => t('Edit'),
@@ -207,7 +209,7 @@ function editwebpage_content(&$a) {
'lockstate' => (((strlen($itm[0]['allow_cid'])) || (strlen($itm[0]['allow_gid'])) || (strlen($itm[0]['deny_cid'])) || (strlen($itm[0]['deny_gid']))) ? 'lock' : 'unlock'),
'$bang' => '',
'$profile_uid' => (intval($owner)),
- '$preview' => true, // ((feature_enabled($uid,'preview')) ? t('Preview') : ''),
+ '$preview' => t('Preview'),
'$jotplugins' => $jotplugins,
'$sourceapp' => $a->sourcename,
'$defexpire' => '',