diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-01-20 03:18:41 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-01-20 03:18:41 +0000 |
commit | fcc8211ab1331a4c6fa501d6b1a23e3c82c75423 (patch) | |
tree | 380cde4e8b5f5f723a1830e1511333d29abd3622 /modules | |
parent | 0ec23b9b431108365bba4792e034a0f151e88ddc (diff) | |
download | brdo-fcc8211ab1331a4c6fa501d6b1a23e3c82c75423.tar.gz brdo-fcc8211ab1331a4c6fa501d6b1a23e3c82c75423.tar.bz2 |
#203323 by JirkaRybka, robertgarrigos, thePanz, c960657, and sun: Fix undefined index locale in install.php and clean up crufty code.
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 |