http://www.mediawiki.org/wiki/Special:Code/MediaWiki/91966

Revision: 91966
Author:   robin
Date:     2011-07-12 14:58:58 +0000 (Tue, 12 Jul 2011)
Log Message:
-----------
(bug 12205) Bidirectional names in action=credits are split and displayed 
incorrectly when wrapped to the next line.

Modified Paths:
--------------
    trunk/phase3/RELEASE-NOTES-1.19
    trunk/phase3/includes/actions/CreditsAction.php
    trunk/phase3/skins/common/shared.css

Modified: trunk/phase3/RELEASE-NOTES-1.19
===================================================================
--- trunk/phase3/RELEASE-NOTES-1.19     2011-07-12 14:32:10 UTC (rev 91965)
+++ trunk/phase3/RELEASE-NOTES-1.19     2011-07-12 14:58:58 UTC (rev 91966)
@@ -155,6 +155,8 @@
   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.

Modified: trunk/phase3/includes/actions/CreditsAction.php
===================================================================
--- trunk/phase3/includes/actions/CreditsAction.php     2011-07-12 14:32:10 UTC 
(rev 91965)
+++ trunk/phase3/includes/actions/CreditsAction.php     2011-07-12 14:58:58 UTC 
(rev 91966)
@@ -196,7 +196,10 @@
                        ? 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() ) )
+               );
        }
 
        /**

Modified: trunk/phase3/skins/common/shared.css
===================================================================
--- trunk/phase3/skins/common/shared.css        2011-07-12 14:32:10 UTC (rev 
91965)
+++ trunk/phase3/skins/common/shared.css        2011-07-12 14:58:58 UTC (rev 
91966)
@@ -775,4 +775,6 @@
 }
 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


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to