Index: trunk/extensions/ParserFunctions/ParserFunctions_body.php |
— | — | @@ -562,8 +562,8 @@ |
563 | 563 | function runPos ( &$parser, $inStr = '', $inNeedle = '', $inOffset = 0 ) { |
564 | 564 | wfProfileIn( __METHOD__ ); |
565 | 565 | |
566 | | - $inStr = $this->killMarkers( (string)$inStr ); |
567 | | - $inNeedle = $this->killMarkers( (string)$inNeedle ); |
| 566 | + $inStr = $this->killMarkers( $parser, (string)$inStr ); |
| 567 | + $inNeedle = $this->killMarkers( $parser, (string)$inNeedle ); |
568 | 568 | |
569 | 569 | if( !$this->checkLength( $inStr ) || |
570 | 570 | !$this->checkLength( $inNeedle ) ) { |
— | — | @@ -591,8 +591,8 @@ |
592 | 592 | function runRPos ( &$parser, $inStr = '', $inNeedle = '' ) { |
593 | 593 | wfProfileIn( __METHOD__ ); |
594 | 594 | |
595 | | - $inStr = $this->killMarkers( (string)$inStr ); |
596 | | - $inNeedle = $this->killMarkers( (string)$inNeedle ); |
| 595 | + $inStr = $this->killMarkers( $parser, (string)$inStr ); |
| 596 | + $inNeedle = $this->killMarkers( $parser, (string)$inNeedle ); |
597 | 597 | |
598 | 598 | if( !$this->checkLength( $inStr ) || |
599 | 599 | !$this->checkLength( $inNeedle ) ) { |
— | — | @@ -624,7 +624,7 @@ |
625 | 625 | function runSub ( &$parser, $inStr = '', $inStart = 0, $inLength = 0 ) { |
626 | 626 | wfProfileIn( __METHOD__ ); |
627 | 627 | |
628 | | - $inStr = $this->killMarkers( (string)$inStr ); |
| 628 | + $inStr = $this->killMarkers( $parser, (string)$inStr ); |
629 | 629 | |
630 | 630 | if( !$this->checkLength( $inStr ) ) { |
631 | 631 | wfProfileOut( __METHOD__ ); |
— | — | @@ -651,8 +651,8 @@ |
652 | 652 | function runCount ( &$parser, $inStr = '', $inSubStr = '' ) { |
653 | 653 | wfProfileIn( __METHOD__ ); |
654 | 654 | |
655 | | - $inStr = $this->killMarkers( (string)$inStr ); |
656 | | - $inSubStr = $this->killMarkers( (string)$inSubStr ); |
| 655 | + $inStr = $this->killMarkers( $parser, (string)$inStr ); |
| 656 | + $inSubStr = $this->killMarkers( $parser, (string)$inSubStr ); |
657 | 657 | |
658 | 658 | if( !$this->checkLength( $inStr ) || |
659 | 659 | !$this->checkLength( $inSubStr ) ) { |
— | — | @@ -682,9 +682,9 @@ |
683 | 683 | global $wgPFStringLengthLimit; |
684 | 684 | wfProfileIn( __METHOD__ ); |
685 | 685 | |
686 | | - $inStr = $this->killMarkers( (string)$inStr ); |
687 | | - $inReplaceFrom = $this->killMarkers( (string)$inReplaceFrom ); |
688 | | - $inReplaceTo = $this->killMarkers( (string)$inReplaceTo ); |
| 686 | + $inStr = $this->killMarkers( $parser, (string)$inStr ); |
| 687 | + $inReplaceFrom = $this->killMarkers( $parser, (string)$inReplaceFrom ); |
| 688 | + $inReplaceTo = $this->killMarkers( $parser, (string)$inReplaceTo ); |
689 | 689 | |
690 | 690 | if( !$this->checkLength( $inStr ) || |
691 | 691 | !$this->checkLength( $inReplaceFrom ) || |
— | — | @@ -738,8 +738,8 @@ |
739 | 739 | function runExplode ( &$parser, $inStr = '', $inDiv = '', $inPos = 0 ) { |
740 | 740 | wfProfileIn( __METHOD__ ); |
741 | 741 | |
742 | | - $inStr = $this->killMarkers( (string)$inStr ); |
743 | | - $inDiv = $this->killMarkers( (string)$inDiv ); |
| 742 | + $inStr = $this->killMarkers( $parser, (string)$inStr ); |
| 743 | + $inDiv = $this->killMarkers( $parser, (string)$inDiv ); |
744 | 744 | |
745 | 745 | if( $inDiv == '' ) { $inDiv = ' '; } |
746 | 746 | |