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

Commit

Permalink
Adjust the dir="rtl" output (see #7171)
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Oct 3, 2014
1 parent 724d71a commit 9c272cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions system/modules/core/pages/PageRegular.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function generate($objPage, $blnCheckRequest=false)
// Mark RTL languages (see #7171)
if ($GLOBALS['TL_LANG']['MSC']['textDirection'] == 'rtl')
{
$this->Template->direction = ' dir="rtl"';
$this->Template->isRTL = true;
}

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


Expand Down
2 changes: 1 addition & 1 deletion system/modules/core/templates/frontend/fe_page.html5
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>"<?php echo $this->direction; ?>>
<html lang="<?php echo $this->language; ?>"<?php if ($this->isRTL): ?> dir="rtl"<?php endif; ?>>
<head>

<?php $this->block('head'); ?>
Expand Down
2 changes: 1 addition & 1 deletion system/modules/core/templates/frontend/fe_page.xhtml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php echo $this->doctype; ?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>"<?php echo $this->direction; ?>>
<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; ?>>
<head>

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

0 comments on commit 9c272cc

Please sign in to comment.