Ignore:
Timestamp:
Nov 10, 2013, 5:18:55 PM (10 years ago)
Author:
mistic100
Message:

delete replace_space function, modify get_cat_display_name_* functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_html.inc.php

    r25202 r25425  
    3232 * @param array cat_informations
    3333 * @param string url
    34  * @param boolean replace_space
    3534 * @return string
    3635 */
    37 function get_cat_display_name($cat_informations,
    38                               $url = '',
    39                               $replace_space = false)
     36function get_cat_display_name($cat_informations, $url = '')
    4037{
    4138  global $conf;
     
    8784    }
    8885  }
    89   if ($replace_space)
    90   {
    91     return replace_space($output);
    92   }
    93   else
    94   {
    95     return $output;
    96   }
     86  return $output;
    9787}
    9888
     
    10797 * @param string uppercats
    10898 * @param string url
    109  * @param boolean replace_space
    11099 * @return string
    111100 */
    112101function get_cat_display_name_cache($uppercats,
    113102                                    $url = '',
    114                                     $replace_space = false,
    115103                                    $single_link = false,
    116104                                    $link_class = null)
     
    185173  }
    186174
    187   if ($replace_space)
    188   {
    189     return replace_space($output);
    190   }
    191   else
    192   {
    193     return $output;
    194   }
     175  return $output;
    195176}
    196177
     
    231212}
    232213
    233 function get_cat_display_name_from_id($cat_id,
    234                                       $url = '',
    235                                       $replace_space = false)
     214function get_cat_display_name_from_id($cat_id, $url = '')
    236215{
    237216  $cat_info = get_cat_info($cat_id);
    238   return get_cat_display_name($cat_info['upper_names'], $url, $replace_space);
     217  return get_cat_display_name($cat_info['upper_names'], $url);
    239218}
    240219
Note: See TracChangeset for help on using the changeset viewer.