From ac129add2be4635dfb48452c7aa20d1b66bef2a8 Mon Sep 17 00:00:00 2001 From: Robin Pepermans Date: Tue, 12 Jul 2011 14:58:58 +0000 Subject: [PATCH] (bug 12205) Bidirectional names in action=credits are split and displayed incorrectly when wrapped to the next line. --- RELEASE-NOTES-1.19 | 2 ++ includes/actions/CreditsAction.php | 5 ++++- skins/common/shared.css | 4 +++- 3 files changed, 9 insertions(+), 2 deletions(-) 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 -- 2.20.1