EditPage: Wrap the pipe between "Cancel" and "Editing help" links in a <span>
authorMatmaRex <matma.rex@gmail.com>
Fri, 26 Jul 2013 10:16:05 +0000 (12:16 +0200)
committerMatmarex <matma.rex@gmail.com>
Tue, 13 Aug 2013 12:39:51 +0000 (12:39 +0000)
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

includes/EditPage.php

index 22cf795..f8788b7 100644 (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 . '">' .