X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Feditpost.php;h=3b8c1128193b2e4ddc195efd4eabfdc1ba61ba6b;hb=295b4d7f610f0172e4fb3d783ff5567b2fbec4ae;hp=c62252bc84ca8fc52d0ca8ea8388e95f5616392f;hpb=f962ecdd6483679879d7608a47dbf8549a431a8f;p=friendica.git diff --git a/mod/editpost.php b/mod/editpost.php index c62252bc84..3b8c112819 100644 --- a/mod/editpost.php +++ b/mod/editpost.php @@ -85,16 +85,19 @@ function editpost_content(&$a) { } } - if($mail_enabled) { + // I don't think there's any need for the $jotnets when editing the post, + // and including them makes it difficult for the JS-free theme, so let's + // disable them +/* if($mail_enabled) { $selected = (($pubmail_enabled) ? ' checked="checked" ' : ''); $jotnets .= '
' . t("Post to Email") . '
'; - } + }*/ call_hooks('jot_tool', $jotplugins); - call_hooks('jot_networks', $jotnets); + //call_hooks('jot_networks', $jotnets); //$tpl = replace_macros($tpl,array('$jotplugins' => $jotplugins)); @@ -103,7 +106,7 @@ function editpost_content(&$a) { $o .= replace_macros($tpl,array( '$return_path' => $_SESSION['return_url'], '$action' => 'item', - '$share' => t('Edit'), + '$share' => t('Save'), '$upload' => t('Upload photo'), '$shortupload' => t('upload photo'), '$attach' => t('Attach file'), @@ -130,7 +133,7 @@ function editpost_content(&$a) { '$emailcc' => t('CC: email addresses'), '$public' => t('Public post'), '$jotnets' => $jotnets, - '$title' => $itm[0]['title'], + '$title' => htmlspecialchars($itm[0]['title']), '$placeholdertitle' => t('Set title'), '$category' => file_tag_file_to_list($itm[0]['file'], 'category'), '$placeholdercategory' => (feature_enabled(local_user(),'categories') ? t('Categories (comma-separated list)') : ''),