From 9c272cc4084519e4d7d8732ea7fd85475f67284a Mon Sep 17 00:00:00 2001 From: Leo Feyer Date: Fri, 3 Oct 2014 14:49:42 +0200 Subject: [PATCH] Adjust the `dir="rtl"` output (see #7171) --- system/modules/core/pages/PageRegular.php | 4 ++-- system/modules/core/templates/frontend/fe_page.html5 | 2 +- system/modules/core/templates/frontend/fe_page.xhtml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/system/modules/core/pages/PageRegular.php b/system/modules/core/pages/PageRegular.php index 5bee51a06d..d31b288e4a 100644 --- a/system/modules/core/pages/PageRegular.php +++ b/system/modules/core/pages/PageRegular.php @@ -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 @@ -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; } diff --git a/system/modules/core/templates/frontend/fe_page.html5 b/system/modules/core/templates/frontend/fe_page.html5 index 23053abc18..dadbb605b8 100644 --- a/system/modules/core/templates/frontend/fe_page.html5 +++ b/system/modules/core/templates/frontend/fe_page.html5 @@ -1,5 +1,5 @@ -direction; ?>> +isRTL): ?> dir="rtl"> block('head'); ?> diff --git a/system/modules/core/templates/frontend/fe_page.xhtml b/system/modules/core/templates/frontend/fe_page.xhtml index 3ea0b60616..24c29ef9d6 100644 --- a/system/modules/core/templates/frontend/fe_page.xhtml +++ b/system/modules/core/templates/frontend/fe_page.xhtml @@ -1,5 +1,5 @@ doctype; ?> -direction; ?>> +isRTL): ?> dir="rtl"> block('head'); ?>