mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-27 17:51:00 +00:00
* (bug 16744) Calling <categorytree> or {{#categorytree:...}} on non-existent category no longer expose strip markers
Changed call from wfMsgExt() with 'parseinline' as option to Parser::recursiveTagParse()
This commit is contained in:
parent
bbad6d01ac
commit
9700e2d54a
|
@ -374,7 +374,11 @@ class CategoryTree {
|
||||||
|
|
||||||
if ( !$allowMissing && !$title->getArticleID() ) {
|
if ( !$allowMissing && !$title->getArticleID() ) {
|
||||||
$html .= Xml::openElement( 'span', array( 'class' => 'CategoryTreeNotice' ) );
|
$html .= Xml::openElement( 'span', array( 'class' => 'CategoryTreeNotice' ) );
|
||||||
|
if( $parser ) {
|
||||||
|
$html .= $parser->recursiveTagParse( wfMsgNoTrans( 'categorytree-not-found', $category ) );
|
||||||
|
} else {
|
||||||
$html .= wfMsgExt( 'categorytree-not-found', 'parseinline', htmlspecialchars( $category ) );
|
$html .= wfMsgExt( 'categorytree-not-found', 'parseinline', htmlspecialchars( $category ) );
|
||||||
|
}
|
||||||
$html .= Xml::closeElement( 'span' );
|
$html .= Xml::closeElement( 'span' );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue