Changeset 12652

Show
Ignore:
Timestamp:
02/22/08 22:46:22 (11 months ago)
Author:
pottedmeat
Message:

Refs #5602. Instead, format title depending on namespace

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • util/branches/dev/jsdoc/jsdoc.module

    r12651 r12652  
    22262226  $variables = jsdoc_get_child_variables($node); 
    22272227  if (!empty($variables)) { 
    2228     uksort($variables, "strnatcasecmp"); 
    22292228    foreach ($variables as $child) { 
    2230       $children[] = _jsdoc_get_object_themed($child); 
    2231     } 
     2229      $title = $child->title; 
     2230      if (!jsdoc_is_namespace($node) && $node->title . '.' == substr($title, 0, strlen($node->title) + 1)) { 
     2231        $title = substr($title, strlen($node->title) + 1); 
     2232      } 
     2233      $children[$title] = _jsdoc_get_object_themed($child, $title); 
     2234    } 
     2235    uksort($children, "strnatcasecmp"); 
    22322236    $form['children'] = array( 
    22332237      '#value' => theme('jsdoc_object_children', $children), 
     
    23572361            continue; 
    23582362          } 
    2359           if ($mixin->title . '.' == substr($title, 0, strlen($mixin->title) + 1)) { 
     2363          if (!jsdoc_is_namespace($node) && $mixin->title . '.' == substr($title, 0, strlen($mixin->title) + 1)) { 
    23602364            $title = substr($title, strlen($mixin->title) + 1); 
    23612365          }