Create new, better tooltip/accesskey methods
authorAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 27 Oct 2008 23:58:00 +0000 (23:58 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 27 Oct 2008 23:58:00 +0000 (23:58 +0000)
commit2f64d0087d3af3de12855cba0c1057309f1049d5
tree73e3dfb6eb73d61973d3c06a9e5ee32a134b2264
parent3f493982942e5112788dd8372d92acb3f70e12d7
Create new, better tooltip/accesskey methods

Old Linker::tooltipAndAccesskey() and Linker::tooltip(), which pass
around raw bits of HTML, are now wrappers for Linker::titleAttrib() and
Linker::accesskey().  Actual usages have not been changed for now.

Note that this might have some slight performance implication, since
the accesskey message will typically be retrieved twice per view
instead of once: once for the accesskey attribute, once for the bit
we're appending to the title attribute.  This used to be avoided by
using a single tooltipAndAccesskey() method, but that's pretty ugly.
Of course, the second hit should reach the local accesskey cache and
not result in a second memcached hit, but I recall Tim saying that that
still takes 100 us or something unreasonable like that.

Causes no new parser test failures, and I didn't notice any difference
in the UI with a quick check.
includes/Linker.php