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.
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user