use Friendica\Core\System;
use Friendica\Database\DBM;
-require_once 'include/acl_selectors.php';
-
function editpost_content(App $a) {
$o = '';
return;
}
+ $geotag = '';
+
$o .= replace_macros(get_markup_template("section_title.tpl"),[
'$title' => L10n::t('Edit post')
]);
$tpl = get_markup_template("jot.tpl");
- if(($group) || (is_array($a->user) && ((strlen($a->user['allow_cid'])) || (strlen($a->user['allow_gid'])) || (strlen($a->user['deny_cid'])) || (strlen($a->user['deny_gid'])))))
+ if (strlen($itm['allow_cid']) || strlen($itm['allow_gid']) || strlen($itm['deny_cid']) || strlen($itm['deny_gid'])) {
$lockstate = 'lock';
- else
+ } else {
$lockstate = 'unlock';
+ }
$jotplugins = '';
$jotnets = '';
'$emtitle' => L10n::t('Example: bob@example.com, mary@example.com'),
'$lockstate' => $lockstate,
'$acl' => '', // populate_acl((($group) ? $group_acl : $a->user)),
- '$bang' => (($group) ? '!' : ''),
+ '$bang' => ($lockstate === 'lock' ? '!' : ''),
'$profile_uid' => $_SESSION['uid'],
'$preview' => L10n::t('Preview'),
'$jotplugins' => $jotplugins,