This repository was archived by the owner on Nov 3, 2023. It is now read-only.
File tree 3 files changed +4
-4
lines changed
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)
149
149
// Mark RTL languages (see #7171)
150
150
if ($ GLOBALS ['TL_LANG ' ]['MSC ' ]['textDirection ' ] == 'rtl ' )
151
151
{
152
- $ this ->Template ->direction = ' dir="rtl" ' ;
152
+ $ this ->Template ->isRTL = true ;
153
153
}
154
154
155
155
// HOOK: modify the page or layout object
@@ -457,7 +457,7 @@ protected function createTemplate($objPage, $objLayout)
457
457
$ this ->Template ->base = \Environment::get ('base ' );
458
458
$ this ->Template ->disableCron = \Config::get ('disableCron ' );
459
459
$ this ->Template ->cronTimeout = $ this ->getCronTimeout ();
460
- $ this ->Template ->direction = '' ;
460
+ $ this ->Template ->isRTL = false ;
461
461
}
462
462
463
463
Original file line number Diff line number Diff line change 1
1
<!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 ; ?>>
3
3
<head>
4
4
5
5
<?php $this->block('head'); ?>
Original file line number Diff line number Diff line change 1
1
< ?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 ; ?> >
3
3
< head >
4
4
5
5
< ?php $this-> block('head'); ?>
You can’t perform that action at this time.
0 commit comments