Changeset 12648

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

Refs #5602. Change the way that titles are formatted

Files:
1 modified

Legend:

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

    r12647 r12648  
    18951895function jsdoc_object_node_load($name, $project=false, $version=false, $resource=false, $exact=true) { 
    18961896  $nodes = jsdoc_object_nodes_load($name, $project, $version, $resource, $exact); 
    1897   if (count($nodes)) { 
     1897  if (count($nodes) == 1) { 
    18981898    return $nodes[0]; 
     1899  } 
     1900  elseif (!empty($nodes)) { 
     1901    return $nodes; 
    18991902  } 
    19001903} 
     
    23412344            continue; 
    23422345          } 
    2343           if ($mixin->title . '.' == substr($title, 0, strlen($mixin->title) + 1)) { 
     2346          if (($type != 'variable' && jsdoc_get_type($mixin) == 'Constructor') && $mixin->title . '.' == substr($title, 0, strlen($mixin->title) + 1)) { 
    23442347            $title = substr($title, strlen($mixin->title) + 1); 
    23452348          }