*
*/
function doGetUserStyles() {
- global $wgUser, $wgOut, $wgStylePath;
+ global $wgStylePath;
$s = parent::doGetUserStyles();
$qb = $this->qbSetting();
}
function doAfterContent() {
- global $wgUser, $wgOut, $wgContLang;
+ global $wgContLang;
$fname = 'SkinStandard::doAfterContent';
wfProfileIn( $fname );
wfProfileIn( $fname.'-1' );
}
-
- if( $tns%2 && $action!='edit' && !$wpPreview) {
- $s.= '<br />'.$this->makeKnownLink($wgTitle->getPrefixedText(),wfMsg('postcomment'),'action=edit§ion=new');
- }
+ # "Post a comment" link
+ if( ( $tns % 2 || $wgOut->showNewSectionLink() ) && $action != 'edit' && !$wpPreview )
+ $s .= '<br />' . $this->makeKnownLinkObj( $wgTitle, wfMsg( 'postcomment' ), 'action=edit§ion=new' );
+
+ #if( $tns%2 && $action!='edit' && !$wpPreview) {
+ #$s.= '<br />'.$this->makeKnownLink($wgTitle->getPrefixedText(),wfMsg('postcomment'),'action=edit§ion=new');
+ #}
/*
watching could cause problems in edit mode: