| @@ 1088-1094 (lines=7) @@ | ||
| 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', |
|
| 1090 | $expansionDepth, |
|
| 1091 | $this->parser->mOptions->getMaxPPExpandDepth() |
|
| 1092 | ); |
|
| 1093 | return '<span class="error">Expansion depth limit exceeded</span>'; |
|
| 1094 | } |
|
| 1095 | ++$expansionDepth; |
|
| 1096 | if ( $expansionDepth > $this->parser->mHighestExpansionDepth ) { |
|
| 1097 | $this->parser->mHighestExpansionDepth = $expansionDepth; |
|
| @@ 925-931 (lines=7) @@ | ||
| 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, |
|
| 928 | $this->parser->mOptions->getMaxPPExpandDepth() |
|
| 929 | ); |
|
| 930 | return '<span class="error">Expansion depth limit exceeded</span>'; |
|
| 931 | } |
|
| 932 | ++$expansionDepth; |
|
| 933 | if ( $expansionDepth > $this->parser->mHighestExpansionDepth ) { |
|
| 934 | $this->parser->mHighestExpansionDepth = $expansionDepth; |
|