Project

General

Profile

« Previous | Next » 

Revision 2527a83c

Added by Andreas Kohlbecker about 4 years ago

fix #8895 fix showing specimen descriptions as running text

View differences:

modules/cdm_dataportal/includes/descriptions.inc
2091 2091
}
2092 2092

  
2093 2093
/**
2094
 * @param $description
2095
 * @param $root_nodes
2094
 * @param $root_nodes, for obtaining the  root nodes from a description you can
2095
 * use the function get_root_nodes_for_dataset($description);
2096 2096
 *
2097 2097
 * @return string
2098 2098
 */
2099
function render_description_string($description, $root_nodes, &$item_cnt = 0) {
2099
function render_description_string($root_nodes, &$item_cnt = 0) {
2100 2100

  
2101 2101
  $out = '';
2102 2102

  
......
2129 2129
      }
2130 2130

  
2131 2131
      // recurse child nodes
2132
      $child_markup = render_description_string($description, $root_node->childNodes, $item_cnt);
2132
      $child_markup = render_description_string($root_node->childNodes, $item_cnt);
2133 2133
      if($child_markup){
2134 2134
        $description_strings[] = $child_markup;
2135 2135
      }

Also available in: Unified diff