Show
Ignore:
Timestamp:
2008-04-02 08:28:33 (8 months ago)
Author:
wwalc
Message:

Fix for #1009: Redirects get changed into numbered list

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • MediaWiki/trunk/FCKeditorParser.body.php

    r1867 r1869  
    446446 
    447447        function parse( $text, &$title, $options, $linestart = true, $clearState = true, $revid = null ) { 
     448                $text = preg_replace("/^#REDIRECT/", "<!--FCK_REDIRECT-->", $text); 
    448449                $parserOutput = parent::parse($text, $title, $options, $linestart , $clearState , $revid ); 
    449450 
     
    474475                        } 
    475476                } 
     477 
     478                $parserOutput->setText(str_replace("<!--FCK_REDIRECT-->", "#REDIRECT", $parserOutput->getText())); 
    476479 
    477480                return $parserOutput;