Change 'title' attributes to links to use full page name

This changes the title attribute on the link generated in the
CategoryTree. The only effect is additional information about the
link target that may be truncated by 'hideprefix' or CSS overflow,
will now still be accessible in another way.

Change-Id: I4f07fa88f0a528634e9bf3c504e84fb4bf55e3bf
This commit is contained in:
Peter Boehm 2019-01-24 13:44:53 +01:00 committed by Krinkle
parent 27289b479d
commit 1dfe6ca618

View file

@ -657,7 +657,15 @@ class CategoryTree {
}
$s .= Xml::tags( 'span', $attr, $bullet ) . ' ';
$s .= Xml::element( 'a', [ 'class' => $labelClass, 'href' => $wikiLink ], $label );
$s .= Xml::element(
'a',
[
'class' => $labelClass,
'href' => $wikiLink,
'title' => $title->getPrefixedText()
],
$label
);
if ( $count !== false && $this->getOption( 'showcount' ) ) {
$s .= self::createCountString( RequestContext::getMain(), $cat, $count );