diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-24 09:42:53 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-24 09:42:53 +0000 |
commit | 7186c4433e85f4f307466e9706b2a62e30a9b173 (patch) | |
tree | 033ae5873052a6108a346da9e259fcdeef3a9ecd /includes | |
parent | ff4fd98430669b6355d91c2a5042b116d840d3da (diff) | |
download | brdo-7186c4433e85f4f307466e9706b2a62e30a9b173.tar.gz brdo-7186c4433e85f4f307466e9706b2a62e30a9b173.tar.bz2 |
#208768 by dvessel, Arancaytar: language direction should be in the HTML source, so it is more accessible even without CSS
Diffstat (limited to 'includes')
-rw-r--r-- | includes/theme.inc | 1 | ||||
-rw-r--r-- | includes/theme.maintenance.inc | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 31cda3a80..4e13f93c2 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -1748,6 +1748,7 @@ function template_preprocess_page(&$variables) { $variables['head'] = drupal_get_html_head(); $variables['help'] = theme('help'); $variables['language'] = $GLOBALS['language']; + $variables['language']->dir = $GLOBALS['language']->direction ? 'rtl' : 'ltr'; $variables['logo'] = theme_get_setting('logo'); $variables['messages'] = $variables['show_messages'] ? theme('status_messages') : ''; $variables['mission'] = isset($mission) ? $mission : ''; diff --git a/includes/theme.maintenance.inc b/includes/theme.maintenance.inc index b4cc24940..c513a00b5 100644 --- a/includes/theme.maintenance.inc +++ b/includes/theme.maintenance.inc @@ -247,6 +247,7 @@ function template_preprocess_maintenance_page(&$variables) { $variables['head'] = drupal_get_html_head(); $variables['help'] = ''; $variables['language'] = $GLOBALS['language']; + $variables['language']->dir = $GLOBALS['language']->direction ? 'rtl' : 'ltr'; $variables['logo'] = theme_get_setting('logo'); $variables['messages'] = $variables['show_messages'] ? theme('status_messages') : ''; $variables['mission'] = ''; |