From d2d4d1c243e6d527d25af1133ac5d2f3b8741376 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 20 Dec 2011 21:57:17 +0000 Subject: [PATCH] Revert r106094 (broken unnecessary cleanup), r106454 (ugly unneceessary cleanup) The ugliness of this sort of code is probably part of why there's still a Linker::tooltip() function. Please don't just replace it with worse code; if truly cleaning it up this should be done by giving a saner interface to the nav generation code --- skins/Vector.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/skins/Vector.php b/skins/Vector.php index 3d6942429d..1779566e99 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -97,10 +97,8 @@ class VectorTemplate extends BaseTemplate { unset( $nav[$section][$key]['class'] ); } if ( isset( $link['tooltiponly'] ) && $link['tooltiponly'] ) { - $tooltip = Linker::titleAttrib( $xmlID ); - $tooltip = $tooltip === false ? '' : Xml::expandAttributes( array( 'title' => $tooltip ) ); - $nav[$section][$key]['key'] = $tooltip; - + $nav[$section][$key]['key'] = + Linker::tooltip( $xmlID ); } else { $nav[$section][$key]['key'] = Xml::expandAttributes( Linker::tooltipAndAccesskeyAttribs( $xmlID ) ); -- 2.20.1