Add &redirect=no to newpages links (bug 14353)
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 15 Jan 2009 18:46:57 +0000 (18:46 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 15 Jan 2009 18:46:57 +0000 (18:46 +0000)
includes/specials/SpecialNewpages.php

index b45955b..b4940f1 100644 (file)
@@ -239,7 +239,8 @@ class SpecialNewpages extends SpecialPage {
 
                $title = Title::makeTitleSafe( $result->rc_namespace, $result->rc_title );
                $time = $wgLang->timeAndDate( $result->rc_timestamp, true );
-               $plink = $this->skin->makeKnownLinkObj( $title, '', $this->patrollable( $result ) ? 'rcid=' . $result->rc_id : '' );
+               $query = $this->patrollable( $result ) ? "rcid={$result->rc_id}&redirect=no" : 'redirect=no';
+               $plink = $this->skin->makeKnownLinkObj( $title, '', $query );
                $hist = $this->skin->makeKnownLinkObj( $title, wfMsgHtml( 'hist' ), 'action=history' );
                $length = wfMsgExt( 'nbytes', array( 'parsemag', 'escape' ),
                        $wgLang->formatNum( $result->length ) );