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
|
@@ 3075-3081 (lines=7) @@
|
| 3072 |
|
} |
| 3073 |
|
# Do recursion depth check |
| 3074 |
|
$limit = $this->mOptions->getMaxTemplateDepth(); |
| 3075 |
|
if ( $frame->depth >= $limit ) { |
| 3076 |
|
$found = true; |
| 3077 |
|
$text = '<span class="error">' |
| 3078 |
|
. wfMessage( 'parser-template-recursion-depth-warning' ) |
| 3079 |
|
->numParams( $limit )->inContentLanguage()->text() |
| 3080 |
|
. '</span>'; |
| 3081 |
|
} |
| 3082 |
|
} |
| 3083 |
|
} |
| 3084 |
|
|