Replace use of deprecated Parser::$mOptions

Bug: T275160
Change-Id: Id17fc7c2db20975fb6fbb2b9bf63a45135f7f354
This commit is contained in:
Umherirrender 2022-12-27 12:53:12 +01:00 committed by jenkins-bot
parent e76dff032d
commit 6e313296c5

View file

@ -729,7 +729,7 @@ abstract class LuaEngine extends ScribuntoEngineBase {
throw new LuaError( "expandTemplate: invalid title \"$titleText\"" );
}
if ( $frame->depth >= $this->parser->mOptions->getMaxTemplateDepth() ) {
if ( $frame->depth >= $this->parser->getOptions()->getMaxTemplateDepth() ) {
throw new LuaError( 'expandTemplate: template depth limit exceeded' );
}
if ( MediaWikiServices::getInstance()->getNamespaceInfo()->isNonincludable( $title->getNamespace() ) ) {