(bug 12205) Bidirectional names in action=credits are split and displayed incorrectly...
authorRobin Pepermans <robin@users.mediawiki.org>
Tue, 12 Jul 2011 14:58:58 +0000 (14:58 +0000)
committerRobin Pepermans <robin@users.mediawiki.org>
Tue, 12 Jul 2011 14:58:58 +0000 (14:58 +0000)
RELEASE-NOTES-1.19
includes/actions/CreditsAction.php
skins/common/shared.css

index 6fecb75..14e368d 100644 (file)
@@ -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.
index 666e038..2792e25 100644 (file)
@@ -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() ) )
+               );
        }
 
        /**
index 1cebc9e..b73d071 100644 (file)
@@ -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