Tweak Special:Log/block for supporting RTL wikis
authorEbrahim Byagowi <ebrahim@gnu.org>
Sat, 20 Jul 2013 00:09:02 +0000 (00:09 +0000)
committerEbrahim Byagowi <ebrahim@gnu.org>
Sat, 20 Jul 2013 00:49:25 +0000 (00:49 +0000)
dir="ltr" was added to make block durations on Special:Log/block
readable for non-local admins, While removing it, I used a
solution to keep block duration on title readable for non-local
admins and making inner text readable for local users

Change-Id: I31aef50196319be7355ad14657e67ca23fc15e20

includes/logging/LogPage.php

index 521cb8a..cc473c1 100644 (file)
@@ -262,7 +262,7 @@ class LogPage {
                                        // User suppression
                                        if ( preg_match( '/^(block|suppress)\/(block|reblock)$/', $key ) ) {
                                                if ( $skin ) {
-                                                       $params[1] = '<span class="blockExpiry" dir="ltr" title="' . htmlspecialchars( $params[1] ) . '">' .
+                                                       $params[1] = '<span class="blockExpiry" title="&lrm;' . htmlspecialchars( $params[1] ) . '">' .
                                                                $wgLang->translateBlockExpiry( $params[1] ) . '</span>';
                                                } else {
                                                        $params[1] = $wgContLang->translateBlockExpiry( $params[1] );