P2 fix handle errors in includeonly tag

This commit is contained in:
Diana 2015-08-26 14:49:56 +00:00
parent 0006d77605
commit 8e6bffbb7f

View file

@ -83,7 +83,11 @@ class PortableInfoboxDataService {
if ( $infoboxes ) {
foreach ( $infoboxes as $infobox ) {
PortableInfoboxParserTagController::getInstance()->render( $infobox, $parser, $frame );
try {
PortableInfoboxParserTagController::getInstance()->render( $infobox, $parser, $frame );
} catch (Exception $e) {
\Wikia\Logger\WikiaLogger::instance()->info( 'Invalid infobox syntax in includeonly tag' );
}
}
return $parser->getOutput()->getProperty( self::INFOBOXES_PROPERTY_NAME );
}