mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-24 00:05:00 +00:00
Replace use of deprecated Parser::$mOptions
Bug: T275160 Change-Id: Id17fc7c2db20975fb6fbb2b9bf63a45135f7f354
This commit is contained in:
parent
e76dff032d
commit
6e313296c5
|
@ -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() ) ) {
|
||||
|
|
Loading…
Reference in a new issue