*/
$wgDisableHardRedirects = false;
+/**
+ * Disable tooltips and access keys
+ */
+$wgDisableTooltipsAndAccesskeys = false;
+
/**
* Use http.dnsbl.sorbs.net to check for open proxies
*/
* @deprecated Returns raw bits of HTML, use titleAttrib() and accesskey()
*/
public function tooltipAndAccesskey( $name ) {
+ global $wgDisableTooltipsAndAccesskeys;
+ if ($wgDisableTooltipsAndAccesskeys)
+ return array();
# FIXME: If Sanitizer::expandAttributes() treated "false" as "output
# no attribute" instead of "output '' as value for attribute", this
# would be three lines.
/** @deprecated Returns raw bits of HTML, use titleAttrib() */
public function tooltip( $name, $options = null ) {
+ global $wgDisableTooltipsAndAccesskeys;
+ if ($wgDisableTooltipsAndAccesskeys)
+ return array();
# FIXME: If Sanitizer::expandAttributes() treated "false" as "output
# no attribute" instead of "output '' as value for attribute", this
# would be two lines.