https://www.mediawiki.org/wiki/Special:Code/MediaWiki/102105

Revision: 102105
Author:   amire80
Date:     2011-11-05 16:50:55 +0000 (Sat, 05 Nov 2011)
Log Message:
-----------
Adding dir="ltr" to the label, to prevent wrong appearance of the arithmetic 
expression.

Modified Paths:
--------------
    trunk/extensions/ConfirmEdit/Captcha.php

Modified: trunk/extensions/ConfirmEdit/Captcha.php
===================================================================
--- trunk/extensions/ConfirmEdit/Captcha.php    2011-11-05 16:35:24 UTC (rev 
102104)
+++ trunk/extensions/ConfirmEdit/Captcha.php    2011-11-05 16:50:55 UTC (rev 
102105)
@@ -253,7 +253,9 @@
                $captcha = $this->getCaptcha();
                $index = $this->storeCaptcha( $captcha );
 
-               return "<p><label 
for=\"wpCaptchaWord\">{$captcha['question']}</label> = " .
+               // dir="ltr" is needed because otherwise it may say
+               // "5 - 20" instead of "20 - 5" and that would be wrong.
+               return "<p><label dir="ltr" 
for=\"wpCaptchaWord\">{$captcha['question']}</label> = " .
                        Xml::element( 'input', array(
                                'name' => 'wpCaptchaWord',
                                'id'   => 'wpCaptchaWord',


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

Reply via email to