X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Feditpost.php;h=3081b67293730250e5f4fde90f687f8db9b64405;hb=bf0b98017decf73123891e935993f2921d3b0acf;hp=af8f4e317926648f6a8d9ee31a92a7c1ce0b3357;hpb=66fe4cc5d6c553a9b5f825b1213b2eb27c4a5004;p=friendica.git diff --git a/mod/editpost.php b/mod/editpost.php index af8f4e3179..3081b67293 100644 --- a/mod/editpost.php +++ b/mod/editpost.php @@ -38,6 +38,8 @@ function editpost_content(App $a) { return; } + $geotag = ''; + $o .= replace_macros(get_markup_template("section_title.tpl"),[ '$title' => L10n::t('Edit post') ]); @@ -61,10 +63,11 @@ function editpost_content(App $a) { $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 = ''; @@ -140,7 +143,7 @@ function editpost_content(App $a) { '$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,