} else {
$label = '';
}
- $ig->add( Image::newFromTitle( $nt ), $label );
+
+ # FIXME: Use the full wiki parser and add its links
+ # to the page's links.
+ $html = $this->mOptions->mSkin->formatComment( $label );
+
+ $ig->add( Image::newFromTitle( $nt ), $html );
$wgLinkCache->addImageLinkObj( $nt );
}
return $ig->toHTML();