aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_html.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions_html.inc.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index f30523c34..5c642fc30 100644
--- a/include/functions_html.inc.php
+++ b/include/functions_html.inc.php
@@ -192,7 +192,7 @@ function language_select($default, $select_name = "language")
{
$available_lang = get_languages();
- $lang_select = '<select name="' . $select_name . '" onchange="this.form.submit()">';
+ $lang_select = '<select name="' . $select_name . '">';
foreach ($available_lang as $code => $displayname)
{
$selected = ( strtolower($default) == strtolower($code) ) ? ' selected="selected"' : '';
@@ -449,4 +449,12 @@ function parse_comment_content($content)
return $content;
}
+
+function get_cat_display_name_from_id($cat_id,
+ $url = 'category.php?cat=',
+ $replace_space = true)
+{
+ $cat_info = get_cat_info($cat_id);
+ get_cat_display_name($cat_info['id'], $url, $replace_space);
+}
?>