X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Feditpost.php;h=f3746317a14ba25e7cf70b9fd2aa8b2c0f925480;hb=e1d22ef5d4333cff860079c92fea92d82fe58fda;hp=54b50bc36de5f1f7c1619e4fdebeb475d38308cc;hpb=ad20c5504deba9dbb4ea5c5deba598f2c448b344;p=friendica.git
diff --git a/mod/editpost.php b/mod/editpost.php
index 54b50bc36d..f3746317a1 100644
--- a/mod/editpost.php
+++ b/mod/editpost.php
@@ -2,7 +2,7 @@
require_once('include/acl_selectors.php');
-function editpost_content(&$a) {
+function editpost_content(App $a) {
$o = '';
@@ -23,19 +23,11 @@ function editpost_content(&$a) {
intval(local_user())
);
- if (! count($itm)) {
+ if (! dbm::is_result($itm)) {
notice( t('Item not found') . EOL);
return;
}
-/* $plaintext = false;
- if( local_user() && intval(get_pconfig(local_user(),'system','plaintext')) || !feature_enabled(local_user(),'richtext') )
- $plaintext = true;*/
- $plaintext = true;
- if( local_user() && feature_enabled(local_user(),'richtext') )
- $plaintext = false;
-
-
$o .= replace_macros(get_markup_template("section_title.tpl"),array(
'$title' => t('Edit post')
));
@@ -43,7 +35,6 @@ function editpost_content(&$a) {
$tpl = get_markup_template('jot-header.tpl');
$a->page['htmlhead'] .= replace_macros($tpl, array(
'$baseurl' => App::get_baseurl(),
- '$editselect' => (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'),
'$ispublic' => ' ', // t('Visible to everybody'),
'$geotag' => $geotag,
'$nickname' => $a->user['nickname']
@@ -52,7 +43,6 @@ function editpost_content(&$a) {
$tpl = get_markup_template('jot-end.tpl');
$a->page['end'] .= replace_macros($tpl, array(
'$baseurl' => App::get_baseurl(),
- '$editselect' => (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'),
'$ispublic' => ' ', // t('Visible to everybody'),
'$geotag' => $geotag,
'$nickname' => $a->user['nickname']