languages/LanguageConverter.php 1 location
|
@@ 707-713 (lines=7) @@
|
| 704 |
|
// Check max depth |
| 705 |
|
if ( $depth >= $this->mMaxDepth ) { |
| 706 |
|
$inner .= '-{'; |
| 707 |
|
if ( !$warningDone ) { |
| 708 |
|
$inner .= '<span class="error">' . |
| 709 |
|
wfMessage( 'language-converter-depth-warning' ) |
| 710 |
|
->numParams( $this->mMaxDepth )->inContentLanguage()->text() . |
| 711 |
|
'</span>'; |
| 712 |
|
$warningDone = true; |
| 713 |
|
} |
| 714 |
|
$startPos += 2; |
| 715 |
|
continue; |
| 716 |
|
} |
includes/parser/Parser.php 1 location
|
@@ 3110-3116 (lines=7) @@
|
| 3107 |
|
} |
| 3108 |
|
# Do recursion depth check |
| 3109 |
|
$limit = $this->mOptions->getMaxTemplateDepth(); |
| 3110 |
|
if ( $frame->depth >= $limit ) { |
| 3111 |
|
$found = true; |
| 3112 |
|
$text = '<span class="error">' |
| 3113 |
|
. wfMessage( 'parser-template-recursion-depth-warning' ) |
| 3114 |
|
->numParams( $limit )->inContentLanguage()->text() |
| 3115 |
|
. '</span>'; |
| 3116 |
|
} |
| 3117 |
|
} |
| 3118 |
|
} |
| 3119 |
|
|