Show
Ignore:
Timestamp:
2008-04-03 13:25:33 (6 months ago)
Author:
wwalc
Message:

Attempt to fix #2084. Formatting of Category links.

Files:
1 modified

Legend:

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

    r1869 r1884  
    453453                        $appendString = ""; 
    454454                        foreach ($categories as $cat=>$val) { 
    455                                 $appendString .= "<a href=\"Category:" . $cat ."\">Category:" . $cat ."</a> "; 
     455                                if ($val != $title->mTextform) { 
     456                                        $appendString .= "<a href=\"Category:" . $cat ."\">" . $val ."</a> "; 
     457                                } 
     458                                else { 
     459                                        $appendString .= "<a href=\"Category:" . $cat ."\">Category:" . $cat ."</a> "; 
     460                                } 
    456461                        } 
    457462                        $parserOutput->setText($parserOutput->getText() . $appendString);