X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fparser%2FStripState.php;h=57f623de8584e933c3cdd7023c5a6a44c0547dd8;hb=781ec5e940fc1008ac0fa4b85c18267b6050477a;hp=b08aa148fe2ded3955d6d147636abd4d8d9d44e0;hpb=684c45e1edfdb3650167f5ab0b081d4f54ac6e80;p=lhc%2Fweb%2Fwiklou.git
diff --git a/includes/parser/StripState.php b/includes/parser/StripState.php
index b08aa148fe..57f623de85 100644
--- a/includes/parser/StripState.php
+++ b/includes/parser/StripState.php
@@ -112,7 +112,7 @@ class StripState {
* @return mixed
*/
protected function unstripType( $type, $text ) {
- // Shortcut
+ // Shortcut
if ( !count( $this->data[$type] ) ) {
return $text;
}
@@ -134,11 +134,14 @@ class StripState {
$marker = $m[1];
if ( isset( $this->data[$this->tempType][$marker] ) ) {
if ( isset( $this->circularRefGuard[$marker] ) ) {
- return '' . wfMsgForContent( 'parser-unstrip-loop-warning' ) . '';
+ return ''
+ . wfMessage( 'parser-unstrip-loop-warning' )->inContentLanguage()->text()
+ . '';
}
if ( $this->recursionLevel >= self::UNSTRIP_RECURSION_LIMIT ) {
- return '' .
- wfMsgForContent( 'parser-unstrip-recursion-limit', self::UNSTRIP_RECURSION_LIMIT ) .
+ return '' .
+ wfMessage( 'parser-unstrip-recursion-limit' )
+ ->numParams( self::UNSTRIP_RECURSION_LIMIT )->inContentLanguage()->text() .
'';
}
$this->circularRefGuard[$marker] = true;
@@ -153,7 +156,7 @@ class StripState {
}
/**
- * Get a StripState object which is sufficient to unstrip the given text.
+ * Get a StripState object which is sufficient to unstrip the given text.
* It will contain the minimum subset of strip items necessary.
*
* @param $text string