mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-12-02 12:06:20 +00:00
Merge "Replace use of getDirMark with HTML markup"
This commit is contained in:
commit
7aaf9f42be
|
@ -340,7 +340,9 @@ class CategoryTree {
|
||||||
$label = $title->getPrefixedText();
|
$label = $title->getPrefixedText();
|
||||||
}
|
}
|
||||||
|
|
||||||
$link = $this->linkRenderer->makeLink( $title, $label );
|
$contLang = MediaWikiServices::getInstance()->getContentLanguage();
|
||||||
|
$link = Html::rawElement( 'bdi', [ 'dir' => $contLang->getDir() ],
|
||||||
|
$this->linkRenderer->makeLink( $title, $label ) );
|
||||||
|
|
||||||
$count = false;
|
$count = false;
|
||||||
$s = '';
|
$s = '';
|
||||||
|
@ -451,8 +453,6 @@ class CategoryTree {
|
||||||
# numbers and commas get messed up in a mixed dir env
|
# numbers and commas get messed up in a mixed dir env
|
||||||
'dir' => $context->getLanguage()->getDir()
|
'dir' => $context->getLanguage()->getDir()
|
||||||
];
|
];
|
||||||
$contLang = MediaWikiServices::getInstance()->getContentLanguage();
|
|
||||||
$s = $contLang->getDirMark() . ' ';
|
|
||||||
|
|
||||||
# Create a list of category members with only non-zero member counts
|
# Create a list of category members with only non-zero member counts
|
||||||
$memberNums = [];
|
$memberNums = [];
|
||||||
|
@ -473,7 +473,7 @@ class CategoryTree {
|
||||||
|
|
||||||
# Only $5 is actually used in the default message.
|
# Only $5 is actually used in the default message.
|
||||||
# Other arguments can be used in a customized message.
|
# Other arguments can be used in a customized message.
|
||||||
$s .= Html::rawElement(
|
$s = ' ' . Html::rawElement(
|
||||||
'span',
|
'span',
|
||||||
$attr,
|
$attr,
|
||||||
$context->msg( 'categorytree-member-num' )
|
$context->msg( 'categorytree-member-num' )
|
||||||
|
|
Loading…
Reference in a new issue