Category links are not part of mBodyText, so <!--LINK tags are not converted.
authorJens Frank <jeluf@users.mediawiki.org>
Thu, 5 Aug 2004 20:15:32 +0000 (20:15 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Thu, 5 Aug 2004 20:15:32 +0000 (20:15 +0000)
set postParseLinkColour to false to force "real" link. There must be a better way to do this.

includes/Parser.php

index 70fe988..86d9632 100644 (file)
@@ -1181,7 +1181,10 @@ class Parser
                                        $nnt = Title::newFromText ( Namespace::getCanonicalName($category).":".$t ) ;
 
                                        $wgLinkCache->suspend(); # Don't save in links/brokenlinks
+                                       $pPLC=$sk->postParseLinkColour();
+                                       $sk->postParseLinkColour( false );
                                        $t = $sk->makeLinkObj( $nnt, $t, '', '' , $prefix );
+                                       $sk->postParseLinkColour( $pPLC );
                                        $wgLinkCache->resume();
 
                                        $sortkey = $wasblank ? $this->mTitle->getPrefixedText() : $text;