mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-15 03:43:55 +00:00
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:
parent
27289b479d
commit
1dfe6ca618
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue