From: Robin Pepermans Date: Tue, 12 Jul 2011 14:58:58 +0000 (+0000) Subject: (bug 12205) Bidirectional names in action=credits are split and displayed incorrectly... X-Git-Tag: 1.31.0-rc.0~28911 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=ac129add2be4635dfb48452c7aa20d1b66bef2a8;p=lhc%2Fweb%2Fwiklou.git (bug 12205) Bidirectional names in action=credits are split and displayed incorrectly when wrapped to the next line. --- diff --git a/RELEASE-NOTES-1.19 b/RELEASE-NOTES-1.19 index 6fecb7579f..14e368ddd1 100644 --- a/RELEASE-NOTES-1.19 +++ b/RELEASE-NOTES-1.19 @@ -155,6 +155,8 @@ production. RefreshLinks::deleteLinksFromNonexistent * (bug 29797) Error: "Tried to load block with invalid type" when subpages are disabled for user pages. +* (bug 12205) Bidirectional names in action=credits are split and displayed + incorrectly when wrapped to the next line. === API changes in 1.19 === * BREAKING CHANGE: action=watch now requires POST and token. diff --git a/includes/actions/CreditsAction.php b/includes/actions/CreditsAction.php index 666e038b8d..2792e25dee 100644 --- a/includes/actions/CreditsAction.php +++ b/includes/actions/CreditsAction.php @@ -196,7 +196,10 @@ class CreditsAction extends FormlessAction { ? SpecialPage::getTitleFor( 'Contributions', $user->getName() ) : $user->getUserPage(); - return Linker::link( $page, htmlspecialchars( $real ? $real : $user->getName() ) ); + return Html::rawElement( 'span', + array( 'class' => 'mw-link-nowrap' ), + Linker::link( $page, htmlspecialchars( $real ? $real : $user->getName() ) ) + ); } /** diff --git a/skins/common/shared.css b/skins/common/shared.css index 1cebc9e1e0..b73d071421 100644 --- a/skins/common/shared.css +++ b/skins/common/shared.css @@ -775,4 +775,6 @@ th.headerSortDown { } div.floatright, table.floatright, div.floatleft, table.floatleft { position: relative; -} \ No newline at end of file +} + +.mw-link-nowrap { white-space: nowrap; } \ No newline at end of file