For MediaWiki (recent comments | status changes | tags | authors | states | release notes)
Index: trunk/extensions/ParserFunctions/ParserFunctions.php =================================================================== --- trunk/extensions/ParserFunctions/ParserFunctions.php (revision 29876) +++ trunk/extensions/ParserFunctions/ParserFunctions.php (revision 29877) @@ -108,9 +108,11 @@ } } - function iferror( &$parser, $test = '', $then = '', $else = '' ) { + function iferror( &$parser, $test = '', $then = '', $else = false ) { if ( preg_match( '/<(strong|span) class="error"/', $test ) ) { return $then; + } elseif ( $else === false ) { + return $test; } else { return $else; }