Use the shinier $wgTitle->isTalkPage(), not the suckier ns/2 thing
authorRob Church <robchurch@users.mediawiki.org>
Mon, 1 May 2006 22:39:04 +0000 (22:39 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Mon, 1 May 2006 22:39:04 +0000 (22:39 +0000)
skins/Standard.php

index 40fe624..30d1a05 100644 (file)
@@ -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 .= '<br />' . $this->makeKnownLinkObj( $wgTitle, wfMsg( 'postcomment' ), 'action=edit&section=new' );
                        
                        #if( $tns%2 && $action!='edit' && !$wpPreview) {