aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-02 17:48:48 -0700
committerfriendica <info@friendica.com>2013-09-02 17:48:48 -0700
commita32d86f0a07e244faeb3fde36c002d9657b3552d (patch)
tree12720fcbcdef51095ac9f01dc8f5b91035092425 /include/conversation.php
parent6ad6aa307fa8cf6dc8635edf8650532aaf068870 (diff)
downloadvolse-hubzilla-a32d86f0a07e244faeb3fde36c002d9657b3552d.tar.gz
volse-hubzilla-a32d86f0a07e244faeb3fde36c002d9657b3552d.tar.bz2
volse-hubzilla-a32d86f0a07e244faeb3fde36c002d9657b3552d.zip
preserve mimetype on page edits
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 299cc1431..43de9fc8d 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1013,7 +1013,7 @@ function status_editor($a,$x,$popup=false) {
if(feature_enabled(local_user(),'richtext'))
$plaintext = false;
- $mimeselct = '';
+ $mimeselect = '';
if(array_key_exists('mimetype',$x) && $x['mimetype']) {
if($x['mimetype'] != 'text/bbcode')
$plaintext = true;
@@ -1021,9 +1021,10 @@ function status_editor($a,$x,$popup=false) {
$mimeselect = mimetype_select($x['profile_uid']);
}
else
- $mimeselect = '<input name="mimetype" value="' . $x['mimetype'] . '" />';
+ $mimeselect = '<input type="hidden" name="mimetype" value="' . $x['mimetype'] . '" />';
}
+ $webpage = ((x($x,'webpage')) ? $x['webpage'] : '');
$tpl = get_markup_template('jot-header.tpl');
@@ -1055,7 +1056,7 @@ function status_editor($a,$x,$popup=false) {
'$return_path' => $a->query_string,
'$action' => $a->get_baseurl(true) . '/item',
'$share' => (x($x,'button') ? $x['button'] : t('Share')),
- '$webpage' => (x($x,'webpage') ? $x['webpage'] : ''),
+ '$webpage' => $webpage,
'$placeholdpagetitle' => t('Page link title'),
'$pagetitle' => (x($x,'pagetitle') ? $x['pagetitle'] : ''),
'$upload' => t('Upload photo'),
@@ -1074,7 +1075,7 @@ function status_editor($a,$x,$popup=false) {
'$shortnoloc' => t('clear location'),
'$title' => "",
'$placeholdertitle' => t('Set title'),
- '$catsenabled' => ((feature_enabled($x['profile_uid'],'categories')) ? 'categories' : ''),
+ '$catsenabled' => ((feature_enabled($x['profile_uid'],'categories') && (! $webpage)) ? 'categories' : ''),
'$category' => "",
'$placeholdercategory' => t('Categories (comma-separated list)'),
'$wait' => t('Please wait'),