wiki mimetype selection

This commit is contained in:
zotlabs
2017-09-12 22:32:31 -07:00
parent 4ff89a5862
commit 5e99295bf6
5 changed files with 19 additions and 9 deletions

View File

@@ -1786,15 +1786,15 @@ function layout_select($channel_id, $current = '') {
}
function mimetype_select($channel_id, $current = 'text/bbcode') {
function mimetype_select($channel_id, $current = 'text/bbcode', $choices = null) {
$x = array(
$x = (($choices) ? $choices : [
'text/bbcode',
'text/html',
'text/markdown',
'text/plain',
'application/x-pdl'
);
]);
if((App::$is_sys) || (channel_codeallowed($channel_id) && $channel_id == local_channel())){