From: Amir E. Aharoni Date: Tue, 17 Jan 2012 00:23:07 +0000 (+0000) Subject: Force left-to-right directionality on the QUnit output and apply the appropriate... X-Git-Tag: 1.31.0-rc.0~25232 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=bba993a59555505626b804bf6fcd1f346eac69e1;p=lhc%2Fweb%2Fwiklou.git Force left-to-right directionality on the QUnit output and apply the appropriate directionality to its header, since it can be translated. --- diff --git a/includes/specials/SpecialJavaScriptTest.php b/includes/specials/SpecialJavaScriptTest.php index f82968d4a7..c658f0d0c8 100644 --- a/includes/specials/SpecialJavaScriptTest.php +++ b/includes/specials/SpecialJavaScriptTest.php @@ -106,7 +106,7 @@ class SpecialJavaScriptTest extends SpecialPage { * Initialize the page for QUnit. */ private function initQUnitTesting() { - global $wgJavaScriptTestConfig; + global $wgJavaScriptTestConfig, $wgLang; $out = $this->getOutput(); @@ -118,13 +118,16 @@ class SpecialJavaScriptTest extends SpecialPage { ->params( $wgJavaScriptTestConfig['qunit']['documentation'] ) ->parseAsBlock(); $header = wfMessage( 'javascripttest-qunit-heading' )->escaped(); + $userDir = $wgLang->getDir(); $baseHtml = <<$header +
+
$header
    +
    HTML; $out->addHtml( $this->wrapSummaryHtml( $summary, 'frameworkfound' ) . $baseHtml );