From 66f96ce7ff051fdd6d7810e380f69d95db7411ea Mon Sep 17 00:00:00 2001 From: "Amir E. Aharoni" Date: Sat, 19 Jul 2014 14:22:07 +0300 Subject: [PATCH] Automatic direction for the license in Special:Version Change-Id: I357d92eca18de9a7a79ddfb215337ec231250ca3 --- includes/specials/SpecialVersion.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialVersion.php b/includes/specials/SpecialVersion.php index cb3fc11845..3508823cb3 100644 --- a/includes/specials/SpecialVersion.php +++ b/includes/specials/SpecialVersion.php @@ -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', + ) ); } -- 2.20.1