Index: trunk/phase3/includes/Linker.php |
— | — | @@ -1634,10 +1634,12 @@ |
1635 | 1635 | public function titleAttrib( $name, $options = null ) { |
1636 | 1636 | wfProfileIn( __METHOD__ ); |
1637 | 1637 | |
1638 | | - if ( wfEmptyMsg( "tooltip-$name" ) ) { |
| 1638 | + $message = wfMessage( "tooltip-$name" ); |
| 1639 | + |
| 1640 | + if ( !$message->exists() ) { |
1639 | 1641 | $tooltip = false; |
1640 | 1642 | } else { |
1641 | | - $tooltip = wfMsg( "tooltip-$name" ); |
| 1643 | + $tooltip = $message->text(); |
1642 | 1644 | # Compatibility: formerly some tooltips had [alt-.] hardcoded |
1643 | 1645 | $tooltip = preg_replace( "/ ?\[alt-.\]$/", '', $tooltip ); |
1644 | 1646 | # Message equal to '-' means suppress it. |