mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 20:09:44 +00:00
P2 fix handle errors in includeonly tag
This commit is contained in:
parent
0006d77605
commit
8e6bffbb7f
|
@ -83,7 +83,11 @@ class PortableInfoboxDataService {
|
||||||
|
|
||||||
if ( $infoboxes ) {
|
if ( $infoboxes ) {
|
||||||
foreach ( $infoboxes as $infobox ) {
|
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 );
|
return $parser->getOutput()->getProperty( self::INFOBOXES_PROPERTY_NAME );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue