Make the link in printfooter explicitly ltr
authorAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Mon, 28 Apr 2014 11:59:22 +0000 (14:59 +0300)
committerAmire80 <amir.aharoni@mail.huji.ac.il>
Mon, 28 Apr 2014 12:09:38 +0000 (12:09 +0000)
Without this, in RTL wikis the "http" appears
in the middle of the URL.

To test, set
$wgLanguageCode = "he";
create an article called "ספר", view it in print mode
and note the URL at the bottom.

Change-Id: I1c0194c5cbd186e953eb0fc49184caa66c436ad1

includes/Skin.php

index d3fa607..8300da7 100644 (file)
@@ -683,7 +683,7 @@ abstract class Skin extends ContextSource {
                        // oldid not available for non existing pages
                        $url = htmlspecialchars( wfExpandIRI( $this->getTitle()->getCanonicalURL() ) );
                }
-               return $this->msg( 'retrievedfrom', '<a href="' . $url . '">' . $url . '</a>' )->text();
+               return $this->msg( 'retrievedfrom', '<a dir="ltr" href="' . $url . '">' . $url . '</a>' )->text();
        }
 
        /**