aboutsummaryrefslogtreecommitdiffstats
path: root/mod/editpost.php
diff options
context:
space:
mode:
authorRedMatrix <info@friendica.com>2014-04-10 13:54:34 +1000
committerRedMatrix <info@friendica.com>2014-04-10 13:54:34 +1000
commit5d5ff22b1dc551863342d2c7c7f44607bbd44777 (patch)
tree236e1999b23db046106b8b54f9cea4b43d1b120d /mod/editpost.php
parent46ed2570b80d7468dc6e875ccb02f533f9cbd139 (diff)
parentb88a7fc23a185a6ecfbc451bddc7da33ea2c4d4c (diff)
downloadvolse-hubzilla-5d5ff22b1dc551863342d2c7c7f44607bbd44777.tar.gz
volse-hubzilla-5d5ff22b1dc551863342d2c7c7f44607bbd44777.tar.bz2
volse-hubzilla-5d5ff22b1dc551863342d2c7c7f44607bbd44777.zip
Merge pull request #399 from git-marijus/master
change the way jot tools are displayed/hidden
Diffstat (limited to 'mod/editpost.php')
-rw-r--r--mod/editpost.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/mod/editpost.php b/mod/editpost.php
index 8c4117e7a..6556405e3 100644
--- a/mod/editpost.php
+++ b/mod/editpost.php
@@ -125,8 +125,7 @@ function editpost_content(&$a) {
'$post_id' => $post_id,
'$baseurl' => $a->get_baseurl(),
'$defloc' => $channel['channel_location'],
- '$visitor' => 'none',
- '$pvisit' => 'none',
+ '$visitor' => false,
'$public' => t('Public post'),
'$jotnets' => $jotnets,
'$title' => htmlspecialchars($itm[0]['title'],ENT_COMPAT,'UTF-8'),
@@ -143,9 +142,9 @@ function editpost_content(&$a) {
'$sourceapp' => t($a->sourcename),
'$catsenabled' => $catsenabled,
'$defexpire' => datetime_convert('UTC', date_default_timezone_get(),$itm[0]['expires']),
- '$feature_expire' => ((feature_enabled(get_app()->profile['profile_uid'],'content_expire') && (! $webpage)) ? 'block' : 'none'),
+ '$feature_expire' => ((feature_enabled(get_app()->profile['profile_uid'],'content_expire') && (! $webpage)) ? true : false),
'$expires' => t('Set expiration date'),
- '$feature_encrypt' => ((feature_enabled(get_app()->profile['profile_uid'],'content_encrypt') && (! $webpage)) ? 'block' : 'none'),
+ '$feature_encrypt' => ((feature_enabled(get_app()->profile['profile_uid'],'content_encrypt') && (! $webpage)) ? true : false),
'$encrypt' => t('Encrypt text'),
'$cipher' => $cipher,
'$expiryModalOK' => t('OK'),