Changeset 12526

Show
Ignore:
Timestamp:
02/19/08 13:55:55 (11 months ago)
Author:
pottedmeat
Message:

Refs #5602. Make sure the URL references the last item inherited

Files:
1 modified

Legend:

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

    r12523 r12526  
    28812881              } 
    28822882              else { 
    2883                 $children[$title]->inheritance[] = (object)array( 
    2884                   'title' => $mixin->title, 
    2885                   'summary' => jsdoc_get_teaser($mixin), 
    2886                   'url' => $mixin->jsdoc_url 
    2887                 ); 
     2883                $inherited = _jsdoc_get_object_themed($item, $title); 
     2884                $children[$title]->url = $inherited->url; 
     2885                $children[$title]->a = $inherited->a; 
     2886                $children[$title]->inheritance[] = _jsdoc_get_object_themed($mixin); 
    28882887              } 
    28892888            } 
     
    29122911    } 
    29132912  } 
    2914   print_r($children); 
    29152913  uksort($children, "strnatcasecmp"); 
    29162914 
     
    29752973    ), 
    29762974    'url' => $node->jsdoc_url, 
    2977     'a' => l($node->title, $node->jsdoc_url), 
    29782975    'summary' => jsdoc_get_teaser($node), 
    29792976    'singleton' => jsdoc_is_initialized($node), 
     
    29812978  ); 
    29822979 
     2980  if ($object->url) { 
     2981    $object->a = l($node->title, $node->jsdoc_url); 
     2982  } 
     2983  else { 
     2984    $object->a = $object->title; 
     2985  } 
     2986 
    29832987  if ($type = jsdoc_object_node_load(jsdoc_get_type($node), jsdoc_get_project($node), jsdoc_get_version($node), jsdoc_get_all_provide_nids($node, array(3, 4)))) { 
    29842988    $object->type->title = $type->title; 
    29852989    $object->type->url = $type->jsdoc_url; 
    2986     $object->type->a = l($type->title, $type->jsdoc_url); 
     2990    if ($type->jsdoc_url) { 
     2991      $object->type->a = l($type->title, $type->jsdoc_url); 
     2992    } 
     2993    else { 
     2994      $object->type->a = $type->title; 
     2995    } 
    29872996  } 
    29882997 
     
    40744083    $output .= '<div class="form-item">'; 
    40754084    if ($child->type) { 
    4076       if ($child->type->url) { 
    4077         $output .= '<em>' . l($child->type->title, $child->type->url) . '</em> '; 
    4078       } 
    4079       else { 
    4080         $output .= '<em>' . $child->type->title . '</em> '; 
    4081       } 
     4085      $output .= '<em>' . $child->type->a . '</em> '; 
    40824086    } 
    40834087    $output .= l($child->title, $child->url);