diff options
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' => '', |