EditPage: Wrap the pipe between "Cancel" and "Editing help" links in a <span>

This will make it possible to hide or style it without nasty hacks
like the one Vector extension's ext.vector.footerCleanup module uses.

Bug: 43689
Change-Id: Id9269876939d3453c53473f7e3650c375f6fdd22
This commit is contained in:
MatmaRex 2013-07-26 12:16:05 +02:00 committed by Matmarex
parent 35c3f63cc1
commit 49fbff1882

View file

@ -2881,7 +2881,9 @@ HTML
$cancel = $this->getCancelLink();
if ( $cancel !== '' ) {
$cancel .= wfMessage( 'pipe-separator' )->text();
$cancel .= Html::element( 'span',
array( 'class' => 'mw-editButtons-pipe-separator' ),
wfMessage( 'pipe-separator' )->text() );
}
$edithelpurl = Skin::makeInternalOrExternalUrl( wfMessage( 'edithelppage' )->inContentLanguage()->text() );
$edithelp = '<a target="helpwindow" href="' . $edithelpurl . '">' .