Access to system settings moved from global scope to SysPrefs.
[fa-stable.git] / reporting / includes / header2.inc
index 5bda35c6c171c471aaffec419675abf38eada389..70e41ee4d219ed4e67082476a04f7c4210ed031f 100644 (file)
                }
                $this->LineTo($right, $iline2 ,$right, $iline4);
                $this->LineTo($this->leftMargin, $iline5 ,$this->leftMargin, $iline7);
-               $this->LineTo($this->cols[$cols - 2] + 4, $iline5 ,$this->cols[$cols - 2] + 4, $iline7);
+               if ($this->l['a_meta_dir'] == 'rtl') // avoid line overwrite in rtl language
+                       $this->LineTo($this->cols[$cols - 2], $iline5 ,$this->cols[$cols - 2], $iline7);
+               else    
+                       $this->LineTo($this->cols[$cols - 2] + 4, $iline5 ,$this->cols[$cols - 2] + 4, $iline7);
                $this->LineTo($right, $iline5 ,$right, $iline7);
 
                // Company Logo
 
                $this->Font();
                $temp = $iline6 - $this->lineHeight - 2;
-?>