Index: trunk/phase3/includes/Linker.php |
— | — | @@ -1942,7 +1942,7 @@ |
1943 | 1943 | */ |
1944 | 1944 | public function tooltipAndAccesskey( $name ) { |
1945 | 1945 | global $wgEnableTooltipsAndAccesskeys; |
1946 | | - if (!$wgEnableTooltipsAndAccesskeys) |
| 1946 | + if ( !$wgEnableTooltipsAndAccesskeys ) |
1947 | 1947 | return array(); |
1948 | 1948 | # FIXME: If Sanitizer::expandAttributes() treated "false" as "output |
1949 | 1949 | # no attribute" instead of "output '' as value for attribute", this |
— | — | @@ -1963,8 +1963,8 @@ |
1964 | 1964 | /** @deprecated Returns raw bits of HTML, use titleAttrib() */ |
1965 | 1965 | public function tooltip( $name, $options = null ) { |
1966 | 1966 | global $wgEnableTooltipsAndAccesskeys; |
1967 | | - if ($wgEnableTooltipsAndAccesskeys) |
1968 | | - return array(); |
| 1967 | + if ( !$wgEnableTooltipsAndAccesskeys ) |
| 1968 | + return ''; |
1969 | 1969 | # FIXME: If Sanitizer::expandAttributes() treated "false" as "output |
1970 | 1970 | # no attribute" instead of "output '' as value for attribute", this |
1971 | 1971 | # would be two lines. |