From: Aaron Schulz Date: Thu, 15 Jan 2009 18:46:57 +0000 (+0000) Subject: Add &redirect=no to newpages links (bug 14353) X-Git-Tag: 1.31.0-rc.0~43400 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=2748c4091;p=lhc%2Fweb%2Fwiklou.git Add &redirect=no to newpages links (bug 14353) --- diff --git a/includes/specials/SpecialNewpages.php b/includes/specials/SpecialNewpages.php index b45955b8d7..b4940f12d9 100644 --- a/includes/specials/SpecialNewpages.php +++ b/includes/specials/SpecialNewpages.php @@ -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 ) );