diff --git a/includes/Engines/LuaCommon/LuaEngine.php b/includes/Engines/LuaCommon/LuaEngine.php index d82ab948..edc72f1b 100644 --- a/includes/Engines/LuaCommon/LuaEngine.php +++ b/includes/Engines/LuaCommon/LuaEngine.php @@ -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() ) ) {