Skip to content

Commit b0c7dfa

Browse files
committed
Bug-fix.
Mixing LTR and RTL data in page output due to lang_override catching a client-specified language with different directionality to that of the default specified language sometimes caused wrong directionality to be populated; Fixed.
1 parent 9063514 commit b0c7dfa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Web.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: Upload handler (last modified: 2020.07.16).
11+
* This file: Upload handler (last modified: 2020.07.20).
1212
*/
1313

1414
namespace phpMussel\Web;
@@ -86,7 +86,7 @@ public function __construct(\phpMussel\Core\Loader &$Loader, \phpMussel\Core\Sca
8686
$this->Attache = sprintf(
8787
' lang="%s" dir="%s"',
8888
$this->Loader->ClientL10NAccepted,
89-
$this->Loader->L10N->Data['Text Direction'] ?? 'ltr'
89+
$this->Loader->ClientL10N->Data['Text Direction'] ?? 'ltr'
9090
);
9191
}
9292

@@ -282,7 +282,8 @@ public function scan()
282282
'detected' => $Detections,
283283
'phpmusselversion' => $this->Loader->ScriptIdent,
284284
'favicon' => base64_encode($this->Loader->getFavicon()),
285-
'xmlLang' => $this->Loader->Configuration['core']['lang']
285+
'xmlLang' => $this->Loader->Configuration['core']['lang'],
286+
'Text Direction' => $this->Loader->L10N->Data['Text Direction']
286287
];
287288

288289
/** Pull relevant client-specified L10N data. */

0 commit comments

Comments
 (0)