This repository was archived by the owner on Nov 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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'); ?>
Original file line number Diff line number Diff line change 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'); ?>
You can’t perform that action at this time.
0 commit comments