From: Roan Kattouw Date: Mon, 8 Nov 2010 15:23:42 +0000 (+0000) Subject: (bug 25839) Set class="blockExpiry" and dir="ltr" (bug suggested direction: ltr;... X-Git-Tag: 1.31.0-rc.0~33989 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=2cedd4be969cb4d0b18ba0c8b0a4de5e71392eff;p=lhc%2Fweb%2Fwiklou.git (bug 25839) Set class="blockExpiry" and dir="ltr" (bug suggested direction: ltr; in CSS, but that doesn't work in this case) on the 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. --- diff --git a/includes/LogPage.php b/includes/LogPage.php index ceb20dbadb..fcd553e2fa 100644 --- a/includes/LogPage.php +++ b/includes/LogPage.php @@ -233,7 +233,7 @@ class LogPage { // User suppression if ( preg_match( '/^(block|suppress)\/(block|reblock)$/', $key ) ) { if ( $skin ) { - $params[1] = '' . + $params[1] = '' . $wgLang->translateBlockExpiry( $params[1] ) . ''; } else { $params[1] = $wgContLang->translateBlockExpiry( $params[1] );