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

Revision: 76309
Author:   catrope
Date:     2010-11-08 15:23:42 +0000 (Mon, 08 Nov 2010)
Log Message:
-----------
(bug 25839) Set class="blockExpiry" and dir="ltr" (bug suggested direction: 
ltr; in CSS, but that doesn't work in this case) on the <span> containing the 
block expiry in Special:Log. It seems strange to unconditionally set dir="ltr" 
on something that may contain text in an RTL language, but it seems to leave 
the latter alone while fixing the display of ISO 8601 timestamps. It's 
definitely possible there's another issue with dir="ltr" that I overlooked 
here, so if this does break display of other expiries in RTL, please revert.

Modified Paths:
--------------
    trunk/phase3/includes/LogPage.php

Modified: trunk/phase3/includes/LogPage.php
===================================================================
--- trunk/phase3/includes/LogPage.php   2010-11-08 15:21:30 UTC (rev 76308)
+++ trunk/phase3/includes/LogPage.php   2010-11-08 15:23:42 UTC (rev 76309)
@@ -233,7 +233,7 @@
                                        // User suppression
                                        if ( preg_match( 
'/^(block|suppress)\/(block|reblock)$/', $key ) ) {
                                                if ( $skin ) {
-                                                       $params[1] = '<span 
title="' . htmlspecialchars( $params[1] ). '">' .
+                                                       $params[1] = '<span 
class="blockExpiry" dir="ltr" title="' . htmlspecialchars( $params[1] ). '">' .
                                                                
$wgLang->translateBlockExpiry( $params[1] ) . '</span>';
                                                } else {
                                                        $params[1] = 
$wgContLang->translateBlockExpiry( $params[1] );


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

Reply via email to