From: Alexandre Emsenhuber Date: Tue, 12 Jul 2011 15:38:07 +0000 (+0000) Subject: * In EditPage.php: don't add the separator if getCancelLink() returns an empty string X-Git-Tag: 1.31.0-rc.0~28909 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=db6f6bd21c2a4ad222f29fcf7ed9ae82f4a376aa;p=lhc%2Fweb%2Fwiklou.git * In EditPage.php: don't add the separator if getCancelLink() returns an empty string * In TalkHere extension: override getCancelLink() instead of having mangleEditForm() hack --- diff --git a/includes/EditPage.php b/includes/EditPage.php index a17b4b1377..16fd9fa981 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1924,12 +1924,14 @@ HTML $wgOut->addHTML( implode( $this->getEditButtons( $tabindex ), "\n" ) . "\n" ); $cancel = $this->getCancelLink(); - $separator = wfMsgExt( 'pipe-separator' , 'escapenoentities' ); + if ( $cancel !== '' ) { + $cancel .= wfMsgExt( 'pipe-separator' , 'escapenoentities' ); + } $edithelpurl = Skin::makeInternalOrExternalUrl( wfMsgForContent( 'edithelppage' ) ); $edithelp = ''. htmlspecialchars( wfMsg( 'edithelp' ) ).' '. htmlspecialchars( wfMsg( 'newwindow' ) ); - $wgOut->addHTML( " {$cancel}{$separator}{$edithelp}\n" ); + $wgOut->addHTML( " {$cancel}{$edithelp}\n" ); $wgOut->addHTML( "\n\n" ); }