Automatic direction for the license in Special:Version
authorAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Sat, 19 Jul 2014 11:22:07 +0000 (14:22 +0300)
committerAmire80 <amir.aharoni@mail.huji.ac.il>
Sat, 20 Sep 2014 17:03:27 +0000 (17:03 +0000)
Change-Id: I357d92eca18de9a7a79ddfb215337ec231250ca3

includes/specials/SpecialVersion.php

index cb3fc11..3508823 100644 (file)
@@ -743,13 +743,19 @@ class SpecialVersion extends SpecialPage {
                        $licenseLink = Linker::link(
                                $this->getPageTitle( 'License/' . $extensionName ),
                                $out->parseInline( $extension['license-name'] ),
-                               array( 'class' => 'mw-version-ext-license' )
+                               array(
+                                       'class' => 'mw-version-ext-license',
+                                       'dir' => 'auto',
+                               )
                        );
                } elseif ( $this->getExtLicenseFileName( $extensionPath ) ) {
                        $licenseLink = Linker::link(
                                $this->getPageTitle( 'License/' . $extensionName ),
                                $this->msg( 'version-ext-license' ),
-                               array( 'class' => 'mw-version-ext-license' )
+                               array(
+                                       'class' => 'mw-version-ext-license',
+                                       'dir' => 'auto',
+                               )
                        );
                }