aboutsummaryrefslogtreecommitdiffstats
path: root/skins/Vector.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@users.mediawiki.org>2011-08-06 12:06:11 +0000
committerBrion Vibber <brion@users.mediawiki.org>2011-08-06 12:06:11 +0000
commit868f61e63b970e4c3903e5add9dbdc782bd22c42 (patch)
treedd88e3ae521bd385eea903b13b974b12f4f9c1ad /skins/Vector.php
parent59d988d7fdac179cd521d755ffa75e5c5c329f73 (diff)
downloadmediawikicore-868f61e63b970e4c3903e5add9dbdc782bd22c42.tar.gz
mediawikicore-868f61e63b970e4c3903e5add9dbdc782bd22c42.zip
Revert r89123 -- caused bug 30259 (switched correct calls with incorrect calls because of some interpretation of 'deprecation', causing invalid HTML output and breakage of watch tab on edit page)
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/94024
Diffstat (limited to 'skins/Vector.php')
-rw-r--r--skins/Vector.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/skins/Vector.php b/skins/Vector.php
index e0d87a8f4e25..ac65b1f9ffed 100644
--- a/skins/Vector.php
+++ b/skins/Vector.php
@@ -108,7 +108,7 @@ class VectorTemplate extends BaseTemplate {
}
if ( isset( $link['tooltiponly'] ) && $link['tooltiponly'] ) {
$nav[$section][$key]['key'] =
- Linker::titleAttrib( $xmlID );
+ Linker::tooltip( $xmlID );
} else {
$nav[$section][$key]['key'] =
Xml::expandAttributes( Linker::tooltipAndAccesskeyAttribs( $xmlID ) );
@@ -302,7 +302,7 @@ class VectorTemplate extends BaseTemplate {
$msg = $name;
}
?>
-<div class="portal" id='<?php echo Sanitizer::escapeId( "p-$name" ) ?>'<?php echo Linker::titleAttrib( 'p-' . $name ) ?>>
+<div class="portal" id='<?php echo Sanitizer::escapeId( "p-$name" ) ?>'<?php echo Linker::tooltip( 'p-' . $name ) ?>>
<h5<?php $this->html( 'userlangattributes' ) ?>><?php $msgObj = wfMessage( $msg ); echo htmlspecialchars( $msgObj->exists() ? $msgObj->text() : $msg ); ?></h5>
<div class="body">
<?php
@@ -332,8 +332,6 @@ class VectorTemplate extends BaseTemplate {
/**
* Render one or more navigations elements by name, automatically reveresed
* when UI is in RTL mode
- *
- * @param $elements array
*/
private function renderNavigation( $elements ) {
global $wgVectorUseSimpleSearch, $wgVectorShowVariantName, $wgUser, $wgLang;