diff options
author | mistic100 <mistic@piwigo.org> | 2013-11-10 16:18:55 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2013-11-10 16:18:55 +0000 |
commit | e6722ac1b4bf45a9416f175cf2729982f42fc8f0 (patch) | |
tree | 206a0d5308cc247a8235afe7a0503d4bf026117a /include/functions_html.inc.php | |
parent | ca80b5ade87f2cdf7ac7d7672910ff08005a3680 (diff) |
delete replace_space function, modify get_cat_display_name_* functions
git-svn-id: http://piwigo.org/svn/trunk@25425 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/functions_html.inc.php | 31 |
1 files changed, 5 insertions, 26 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index ae776f55e..3f9c6542a 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -31,12 +31,9 @@ * * @param array cat_informations * @param string url - * @param boolean replace_space * @return string */ -function get_cat_display_name($cat_informations, - $url = '', - $replace_space = false) +function get_cat_display_name($cat_informations, $url = '') { global $conf; @@ -86,14 +83,7 @@ function get_cat_display_name($cat_informations, $output.= $cat['name'].'</a>'; } } - if ($replace_space) - { - return replace_space($output); - } - else - { - return $output; - } + return $output; } /** @@ -106,12 +96,10 @@ function get_cat_display_name($cat_informations, * * @param string uppercats * @param string url - * @param boolean replace_space * @return string */ function get_cat_display_name_cache($uppercats, $url = '', - $replace_space = false, $single_link = false, $link_class = null) { @@ -184,14 +172,7 @@ SELECT id, name, permalink $output.= '</a>'; } - if ($replace_space) - { - return replace_space($output); - } - else - { - return $output; - } + return $output; } /** @@ -230,12 +211,10 @@ function render_comment_content($content) return $content; } -function get_cat_display_name_from_id($cat_id, - $url = '', - $replace_space = false) +function get_cat_display_name_from_id($cat_id, $url = '') { $cat_info = get_cat_info($cat_id); - return get_cat_display_name($cat_info['upper_names'], $url, $replace_space); + return get_cat_display_name($cat_info['upper_names'], $url); } /** |