Changeset 1851 for MediaWiki/trunk

Show
Ignore:
Timestamp:
2008-03-31 11:16:48 (5 months ago)
Author:
wwalc
Message:

Fix for #1882: interwiki language links lost.

Location:
MediaWiki/trunk
Files:
2 modified

Legend:

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

    r1836 r1851  
    441441                if (!empty($this->fck_mw_strtr_span)) { 
    442442                        $parserOutput->setText(strtr($parserOutput->getText(), $this->fck_mw_strtr_span)); 
     443                } 
     444 
     445                if (!empty($parserOutput->mLanguageLinks)) { 
     446                        foreach ($parserOutput->mLanguageLinks as $l) { 
     447                                $parserOutput->setText($parserOutput->getText() . "\n" . "<a href=\"".$l."\">".$l."</a>") ; 
     448                        } 
    443449                } 
    444450 
  • MediaWiki/trunk/mw12/FCKeditorParser_OldPP.body.php

    r1836 r1851  
    443443                } 
    444444 
     445                if (!empty($parserOutput->mLanguageLinks)) { 
     446                        foreach ($parserOutput->mLanguageLinks as $l) { 
     447                                $parserOutput->setText($parserOutput->getText() . "\n" . "<a href=\"".$l."\">".$l."</a>") ; 
     448                        } 
     449                } 
     450                 
    445451                return $parserOutput; 
    446452        }