Kaynağa Gözat

RTL handling

Signed-off-by: John Rayes <[email protected]>
John Rayes 11 yıl önce
ebeveyn
işleme
22e5a94a8b
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      Sources/Load.php

+ 3 - 0
Sources/Load.php

@@ -2078,6 +2078,9 @@ function loadCSSFile($filename, $params = array(), $id = '')
 	// Add it to the array for use in the template
 	if (!empty($filename))
 		$context['css_files'][$id] = array('filename' => $filename, 'options' => $params);
+
+	if (!empty($context['right_to_left']) && !empty($params['rtl']))
+		loadCSSFile($params['rtl'], array_diff_key($params, array('rtl' => 0)));
 }
 
 /**