From 59c4b5767f042b411bae1f93ca8da2200b14a029 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Mon, 1 May 2006 22:39:04 +0000 Subject: [PATCH] Use the shinier $wgTitle->isTalkPage(), not the suckier ns/2 thing --- skins/Standard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.20.1