r49471 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49470‎ | r49471 | r49472 >
Date:17:44, 14 April 2009
Author:ialex
Status:ok
Tags:
Comment:
* (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()
Modified paths:
  • /trunk/extensions/CategoryTree/CategoryTreeFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CategoryTree/CategoryTreeFunctions.php
@@ -374,7 +374,11 @@
375375
376376 if ( !$allowMissing && !$title->getArticleID() ) {
377377 $html .= Xml::openElement( 'span', array( 'class' => 'CategoryTreeNotice' ) );
378 - $html .= wfMsgExt( 'categorytree-not-found', 'parseinline', htmlspecialchars( $category ) );
 378+ if( $parser ) {
 379+ $html .= $parser->recursiveTagParse( wfMsgNoTrans( 'categorytree-not-found', $category ) );
 380+ } else {
 381+ $html .= wfMsgExt( 'categorytree-not-found', 'parseinline', htmlspecialchars( $category ) );
 382+ }
379383 $html .= Xml::closeElement( 'span' );
380384 }
381385 else {

Status & tagging log