Merge "Use Linker::link() instead of Linker::linkKnown() when having options"
authorSiebrand <siebrand@wikimedia.org>
Mon, 22 Oct 2012 12:06:57 +0000 (12:06 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 22 Oct 2012 12:06:57 +0000 (12:06 +0000)
includes/specials/SpecialNewpages.php

index bd7b41f..08d1517 100644 (file)
@@ -325,12 +325,13 @@ class SpecialNewpages extends IncludableSpecialPage {
                        $query['rcid'] = $result->rc_id;
                }
 
-               $plink = Linker::linkKnown(
+               // Linker::linkKnown() uses 'known' and 'noclasses' options. This breaks the colouration for stubs.
+               $plink = Linker::link(
                        $title,
                        null,
                        array( 'class' => 'mw-newpages-pagename' ),
                        $query,
-                       array( 'known' ) // Set explicitly to avoid the default of 'known','noclasses'. This breaks the colouration for stubs
+                       array( 'known' )
                );
                $histLink = Linker::linkKnown(
                        $title,