mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 23:35:12 +00:00
add option to mimetype selector so you can change the element name in case you end up with two of these suckers on the same page
This commit is contained in:
parent
796228b7ad
commit
0e6d84e207
1 changed files with 2 additions and 2 deletions
|
@ -1786,7 +1786,7 @@ function layout_select($channel_id, $current = '') {
|
|||
}
|
||||
|
||||
|
||||
function mimetype_select($channel_id, $current = 'text/bbcode', $choices = null) {
|
||||
function mimetype_select($channel_id, $current = 'text/bbcode', $choices = null, $element = 'mimetype') {
|
||||
|
||||
$x = (($choices) ? $choices : [
|
||||
'text/bbcode',
|
||||
|
@ -1807,7 +1807,7 @@ function mimetype_select($channel_id, $current = 'text/bbcode', $choices = null)
|
|||
}
|
||||
|
||||
$o = replace_macros(get_markup_template('field_select_raw.tpl'), array(
|
||||
'$field' => array('mimetype', t('Page content type'), $selected, '', $options)
|
||||
'$field' => array( $element, t('Page content type'), $selected, '', $options)
|
||||
));
|
||||
|
||||
return $o;
|
||||
|
|
Loading…
Reference in a new issue