Index: trunk/phase3/includes/Linker.php |
— | — | @@ -1941,6 +1941,9 @@ |
1942 | 1942 | * @deprecated Returns raw bits of HTML, use titleAttrib() and accesskey() |
1943 | 1943 | */ |
1944 | 1944 | public function tooltipAndAccesskey( $name ) { |
| 1945 | + global $wgDisableTooltipsAndAccesskeys; |
| 1946 | + if ($wgDisableTooltipsAndAccesskeys) |
| 1947 | + return array(); |
1945 | 1948 | # FIXME: If Sanitizer::expandAttributes() treated "false" as "output |
1946 | 1949 | # no attribute" instead of "output '' as value for attribute", this |
1947 | 1950 | # would be three lines. |
— | — | @@ -1959,6 +1962,9 @@ |
1960 | 1963 | |
1961 | 1964 | /** @deprecated Returns raw bits of HTML, use titleAttrib() */ |
1962 | 1965 | public function tooltip( $name, $options = null ) { |
| 1966 | + global $wgDisableTooltipsAndAccesskeys; |
| 1967 | + if ($wgDisableTooltipsAndAccesskeys) |
| 1968 | + return array(); |
1963 | 1969 | # FIXME: If Sanitizer::expandAttributes() treated "false" as "output |
1964 | 1970 | # no attribute" instead of "output '' as value for attribute", this |
1965 | 1971 | # would be two lines. |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -3467,6 +3467,11 @@ |
3468 | 3468 | $wgDisableHardRedirects = false; |
3469 | 3469 | |
3470 | 3470 | /** |
| 3471 | + * Disable tooltips and access keys |
| 3472 | + */ |
| 3473 | +$wgDisableTooltipsAndAccesskeys = false; |
| 3474 | + |
| 3475 | +/** |
3471 | 3476 | * Use http.dnsbl.sorbs.net to check for open proxies |
3472 | 3477 | */ |
3473 | 3478 | $wgEnableSorbs = false; |