aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-02-09 15:58:26 -0800
committerfriendica <info@friendica.com>2012-02-09 15:58:26 -0800
commit7b0a005441a6abc3d4c327965e86ac82d2ec4db3 (patch)
tree6a3e8ff87b05292328f6ef2533585331f252eedd /mod
parent795e02aa1490f6238e6ed719a0bf3604931eec3d (diff)
downloadvolse-hubzilla-7b0a005441a6abc3d4c327965e86ac82d2ec4db3.tar.gz
volse-hubzilla-7b0a005441a6abc3d4c327965e86ac82d2ec4db3.tar.bz2
volse-hubzilla-7b0a005441a6abc3d4c327965e86ac82d2ec4db3.zip
edit post not working after plaintext editor fixes, missing some recent editor template changes
Diffstat (limited to 'mod')
-rwxr-xr-xmod/editpost.php4
-rwxr-xr-xmod/item.php3
2 files changed, 6 insertions, 1 deletions
diff --git a/mod/editpost.php b/mod/editpost.php
index bceb9250a..f23b305f0 100755
--- a/mod/editpost.php
+++ b/mod/editpost.php
@@ -35,6 +35,7 @@ function editpost_content(&$a) {
$a->page['htmlhead'] .= replace_macros($tpl, array(
'$baseurl' => $a->get_baseurl(),
+ '$editselect' => (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'),
'$ispublic' => '&nbsp;', // t('Visible to <strong>everybody</strong>'),
'$geotag' => $geotag,
'$nickname' => $a->user['nickname']
@@ -108,11 +109,14 @@ function editpost_content(&$a) {
'$emailcc' => t('CC: email addresses'),
'$public' => t('Public post'),
'$jotnets' => $jotnets,
+ '$title' => $itm[0]['title'],
+ '$placeholdertitle' => t('Set title'),
'$emtitle' => t('Example: bob@example.com, mary@example.com'),
'$lockstate' => $lockstate,
'$acl' => '', // populate_acl((($group) ? $group_acl : $a->user), $celeb),
'$bang' => (($group) ? '!' : ''),
'$profile_uid' => $_SESSION['uid'],
+ '$preview' => t('Preview'),
'$jotplugins' => $jotplugins,
));
diff --git a/mod/item.php b/mod/item.php
index 217f13c49..d5dcfccbd 100755
--- a/mod/item.php
+++ b/mod/item.php
@@ -649,7 +649,8 @@ function item_post(&$a) {
if($orig_post) {
- $r = q("UPDATE `item` SET `body` = '%s', `edited` = '%s' WHERE `id` = %d AND `uid` = %d LIMIT 1",
+ $r = q("UPDATE `item` SET `title` = '%s', `body` = '%s', `edited` = '%s' WHERE `id` = %d AND `uid` = %d LIMIT 1",
+ dbesc($title),
dbesc($body),
dbesc(datetime_convert()),
intval($post_id),