aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-02 13:31:59 -0700
committerfriendica <info@friendica.com>2013-09-02 13:31:59 -0700
commitf44274bfca6137795ee878a076d5aeed0b330f64 (patch)
tree309b0b7067e9733331562fb46baf16d8bb43bf8d /include/conversation.php
parent8b7757e033c4483da24700722c186057bb431164 (diff)
downloadvolse-hubzilla-f44274bfca6137795ee878a076d5aeed0b330f64.tar.gz
volse-hubzilla-f44274bfca6137795ee878a076d5aeed0b330f64.tar.bz2
volse-hubzilla-f44274bfca6137795ee878a076d5aeed0b330f64.zip
allow a channel owner to define a default mimetype on webpages (otherwise default to "choose") - also fix the selector w/r/t php code. There is no ui for setting either at the moment, but for instance with wiki pages we probably don't want to have multiple choice of the mimetype. Keep it simple.
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/conversation.php b/include/conversation.php
index a357e1480..31bfdbef9 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1016,8 +1016,14 @@ function status_editor($a,$x,$popup=false) {
if(intval($x['plaintext']))
$plaintext = true;
- if(intval($x['mimeselect']))
- $mimeselect = mimetype_select($x['profile_uid']);
+ $mimeselct = '';
+ if(array_key_exists('mimetype',$x) && $x['mimetype']) {
+ if($x['mimetype'] === 'choose')
+ $mimeselect = mimetype_select($x['profile_uid']);
+ else
+ $mimeselect = '<input name="mimetype" value="' . $x['mimetype'] . '" />';
+ }
+
$tpl = get_markup_template('jot-header.tpl');