From: Rob Church Date: Mon, 1 May 2006 22:39:04 +0000 (+0000) Subject: Use the shinier $wgTitle->isTalkPage(), not the suckier ns/2 thing X-Git-Tag: 1.31.0-rc.0~57278 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=59c4b5767f042b411bae1f93ca8da2200b14a029;p=lhc%2Fweb%2Fwiklou.git Use the shinier $wgTitle->isTalkPage(), not the suckier ns/2 thing --- diff --git a/skins/Standard.php b/skins/Standard.php index 40fe624573..30d1a05ce5 100644 --- a/skins/Standard.php +++ b/skins/Standard.php @@ -220,7 +220,7 @@ class SkinStandard extends Skin { } # "Post a comment" link - if( ( $tns % 2 || $wgOut->showNewSectionLink() ) && $action != 'edit' && !$wpPreview ) + if( ( $wgTitle->isTalkPage() || $wgOut->showNewSectionLink() ) && $action != 'edit' && !$wpPreview ) $s .= '
' . $this->makeKnownLinkObj( $wgTitle, wfMsg( 'postcomment' ), 'action=edit§ion=new' ); #if( $tns%2 && $action!='edit' && !$wpPreview) {