diff options
author | friendica <info@friendica.com> | 2013-09-02 17:48:48 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-09-02 17:48:48 -0700 |
commit | a32d86f0a07e244faeb3fde36c002d9657b3552d (patch) | |
tree | 12720fcbcdef51095ac9f01dc8f5b91035092425 /mod | |
parent | 6ad6aa307fa8cf6dc8635edf8650532aaf068870 (diff) | |
download | volse-hubzilla-a32d86f0a07e244faeb3fde36c002d9657b3552d.tar.gz volse-hubzilla-a32d86f0a07e244faeb3fde36c002d9657b3552d.tar.bz2 volse-hubzilla-a32d86f0a07e244faeb3fde36c002d9657b3552d.zip |
preserve mimetype on page edits
Diffstat (limited to 'mod')
-rw-r--r-- | mod/editwebpage.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/mod/editwebpage.php b/mod/editwebpage.php index f89be67c4..cd901e7e3 100644 --- a/mod/editwebpage.php +++ b/mod/editwebpage.php @@ -65,6 +65,17 @@ function editwebpage_content(&$a) { if(feature_enabled(local_user(),'richtext')) $plaintext = false; + + + $mimetype = $itm[0]['mimetype']; + + $mimeselect = ''; + + if($mimetype != 'text/bbcode') + $plaintext = true; + $mimeselect = '<input type="hidden" name="mimetype" value="' . $mimetype . '" />'; + + $o .= replace_macros(get_markup_template('edpost_head.tpl'), array( '$title' => t('Edit post') )); @@ -78,7 +89,7 @@ function editwebpage_content(&$a) { '$nickname' => $a->user['nickname'] )); - + $tpl = get_markup_template("jot.tpl"); $jotplugins = ''; @@ -118,6 +129,7 @@ function editwebpage_content(&$a) { '$pvisit' => 'none', '$public' => t('Public post'), '$jotnets' => $jotnets, + '$mimeselect' => $mimeselect, '$title' => htmlspecialchars($itm[0]['title']), '$placeholdertitle' => t('Set title'), '$category' => '', |