aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-12 23:25:19 -0700
committerzotlabs <mike@macgirvin.com>2017-09-12 23:25:19 -0700
commit0e6d84e20731f173e489fe0d54b43c01266c0391 (patch)
tree56a43b3d7d78e5c6102c447c7f7253eaffe7c7ae /include
parent796228b7ad3cac90b23de2954445021578635105 (diff)
downloadvolse-hubzilla-0e6d84e20731f173e489fe0d54b43c01266c0391.tar.gz
volse-hubzilla-0e6d84e20731f173e489fe0d54b43c01266c0391.tar.bz2
volse-hubzilla-0e6d84e20731f173e489fe0d54b43c01266c0391.zip
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
Diffstat (limited to 'include')
-rw-r--r--include/text.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/text.php b/include/text.php
index 58e2b8256..c4d441e85 100644
--- a/include/text.php
+++ b/include/text.php
@@ -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;