follow up to r106094

This commit is contained in:
Jeroen De Dauw 2011-12-16 18:17:04 +00:00
parent 37988ed5c3
commit fd70e68a2e

View file

@ -97,8 +97,10 @@ class VectorTemplate extends BaseTemplate {
unset( $nav[$section][$key]['class'] );
}
if ( isset( $link['tooltiponly'] ) && $link['tooltiponly'] ) {
$nav[$section][$key]['key'] =
Linker::titleAttrib( $xmlID );
$tooltip = Linker::titleAttrib( $xmlID );
$tooltip = $tooltip === false ? '' : Xml::expandAttributes( array( 'title' => $tooltip ) );
$nav[$section][$key]['key'] = $tooltip;
} else {
$nav[$section][$key]['key'] =
Xml::expandAttributes( Linker::tooltipAndAccesskeyAttribs( $xmlID ) );