Show
Ignore:
Timestamp:
2008-04-01 13:08:56 (5 months ago)
Author:
wwalc
Message:

Fix for #1713: handling nowiki tags in templates

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • MediaWiki/trunk/mw12/FCKeditorParser_OldPP.body.php

    r1855 r1865  
    88        protected $fck_mw_taghook; 
    99        protected $fck_internal_parse_text; 
     10        protected $fck_matches = array(); 
    1011 
    1112        private $FCKeditorMagicWords = array( 
     
    252253                } 
    253254 
     255                $this->fck_matches = $matches; 
    254256                wfProfileOut( __METHOD__ ); 
    255257                return $text; 
     
    453455                        $parserOutput->setText(strtr($parserOutput->getText(), $this->fck_mw_strtr_span)); 
    454456                } 
    455  
     457                if (!empty($this->fck_matches)) { 
     458                        $text = $parserOutput->getText() ; 
     459                        foreach ($this->fck_matches as $key => $m) { 
     460                                $text = str_replace( $key, $m[3], $text); 
     461                        } 
     462                        $parserOutput->setText($text); 
     463                } 
     464                 
    456465                if (!empty($parserOutput->mLanguageLinks)) { 
    457466                        foreach ($parserOutput->mLanguageLinks as $l) {