| @@ 1080-1086 (lines=7) @@ | ||
| 1077 | return $root; |
|
| 1078 | } |
|
| 1079 | ||
| 1080 | if ( ++$this->parser->mPPNodeCount > $this->parser->mOptions->getMaxPPNodeCount() ) { |
|
| 1081 | $this->parser->limitationWarn( 'node-count-exceeded', |
|
| 1082 | $this->parser->mPPNodeCount, |
|
| 1083 | $this->parser->mOptions->getMaxPPNodeCount() |
|
| 1084 | ); |
|
| 1085 | return '<span class="error">Node-count limit exceeded</span>'; |
|
| 1086 | } |
|
| 1087 | ||
| 1088 | if ( $expansionDepth > $this->parser->mOptions->getMaxPPExpandDepth() ) { |
|
| 1089 | $this->parser->limitationWarn( 'expansion-depth-exceeded', |
|
| @@ 918-924 (lines=7) @@ | ||
| 915 | return $root; |
|
| 916 | } |
|
| 917 | ||
| 918 | if ( ++$this->parser->mPPNodeCount > $this->parser->mOptions->getMaxPPNodeCount() ) { |
|
| 919 | $this->parser->limitationWarn( 'node-count-exceeded', |
|
| 920 | $this->parser->mPPNodeCount, |
|
| 921 | $this->parser->mOptions->getMaxPPNodeCount() |
|
| 922 | ); |
|
| 923 | return '<span class="error">Node-count limit exceeded</span>'; |
|
| 924 | } |
|
| 925 | if ( $expansionDepth > $this->parser->mOptions->getMaxPPExpandDepth() ) { |
|
| 926 | $this->parser->limitationWarn( 'expansion-depth-exceeded', |
|
| 927 | $expansionDepth, |
|