From 9700e2d54acd196e02406fc7363a55275f9ad407 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 14 Apr 2009 17:44:55 +0000 Subject: [PATCH] * (bug 16744) Calling or {{#categorytree:...}} on non-existent category no longer expose strip markers Changed call from wfMsgExt() with 'parseinline' as option to Parser::recursiveTagParse() --- CategoryTreeFunctions.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CategoryTreeFunctions.php b/CategoryTreeFunctions.php index 390f169d..c176a351 100644 --- a/CategoryTreeFunctions.php +++ b/CategoryTreeFunctions.php @@ -374,7 +374,11 @@ class CategoryTree { if ( !$allowMissing && !$title->getArticleID() ) { $html .= Xml::openElement( 'span', array( 'class' => 'CategoryTreeNotice' ) ); - $html .= wfMsgExt( 'categorytree-not-found', 'parseinline', htmlspecialchars( $category ) ); + if( $parser ) { + $html .= $parser->recursiveTagParse( wfMsgNoTrans( 'categorytree-not-found', $category ) ); + } else { + $html .= wfMsgExt( 'categorytree-not-found', 'parseinline', htmlspecialchars( $category ) ); + } $html .= Xml::closeElement( 'span' ); } else {