Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit 9c272cc

Browse files
committed
Adjust the dir="rtl" output (see #7171)
1 parent 724d71a commit 9c272cc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

system/modules/core/pages/PageRegular.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function generate($objPage, $blnCheckRequest=false)
149149
// Mark RTL languages (see #7171)
150150
if ($GLOBALS['TL_LANG']['MSC']['textDirection'] == 'rtl')
151151
{
152-
$this->Template->direction = ' dir="rtl"';
152+
$this->Template->isRTL = true;
153153
}
154154

155155
// HOOK: modify the page or layout object
@@ -457,7 +457,7 @@ protected function createTemplate($objPage, $objLayout)
457457
$this->Template->base = \Environment::get('base');
458458
$this->Template->disableCron = \Config::get('disableCron');
459459
$this->Template->cronTimeout = $this->getCronTimeout();
460-
$this->Template->direction = '';
460+
$this->Template->isRTL = false;
461461
}
462462

463463

system/modules/core/templates/frontend/fe_page.html5

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="<?php echo $this->language; ?>"<?php echo $this->direction; ?>>
2+
<html lang="<?php echo $this->language; ?>"<?php if ($this->isRTL): ?> dir="rtl"<?php endif; ?>>
33
<head>
44

55
<?php $this->block('head'); ?>

system/modules/core/templates/frontend/fe_page.xhtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php echo $this->doctype; ?>
2-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>"<?php echo $this->direction; ?>>
2+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>"<?php if ($this->isRTL): ?> dir="rtl"<?php endif; ?>>
33
<head>
44

55
<?php $this->block('head'); ?>

0 commit comments

Comments
 (0)