diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/book/book.module | 2 | ||||
-rw-r--r-- | modules/color/color.module | 2 | ||||
-rw-r--r-- | modules/locale/locale.module | 11 |
3 files changed, 2 insertions, 13 deletions
diff --git a/modules/book/book.module b/modules/book/book.module index 64f02c450..e86bd94b1 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -998,7 +998,7 @@ function template_preprocess_book_export_html(&$variables) { $variables['title'] = check_plain($variables['title']); $variables['base_url'] = $base_url; $variables['language'] = $language; - $variables['language_rtl'] = defined('LANGUAGE_RTL') && $language->direction == LANGUAGE_RTL; + $variables['language_rtl'] = ($language->direction == LANGUAGE_RTL); $variables['head'] = drupal_get_html_head(); } diff --git a/modules/color/color.module b/modules/color/color.module index e09145003..50006afb3 100644 --- a/modules/color/color.module +++ b/modules/color/color.module @@ -94,7 +94,7 @@ function _color_page_alter(&$vars) { // If the current language is RTL and the CSS file had an RTL variant, // pull out the non-colored and add rewritten RTL stylesheet. - if (defined('LANGUAGE_RTL') && $language->direction == LANGUAGE_RTL) { + if ($language->direction == LANGUAGE_RTL) { $rtl_old_path = str_replace('.css', '-rtl.css', $old_path); $rtl_color_path = str_replace('.css', '-rtl.css', $color_path); if (file_exists($rtl_color_path)) { diff --git a/modules/locale/locale.module b/modules/locale/locale.module index c44303292..7fa66b38b 100644 --- a/modules/locale/locale.module +++ b/modules/locale/locale.module @@ -12,17 +12,6 @@ * Gettext portable object files are supported. */ -/** - * Language written left to right. Possible value of $language->direction. - */ -define('LANGUAGE_LTR', 0); - -/** - * Language written right to left. Possible value of $language->direction. - */ -define('LANGUAGE_RTL', 1); - - // --------------------------------------------------------------------------------- // Hook implementations |