summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r--modules/gallery/helpers/locales.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/gallery/helpers/locales.php b/modules/gallery/helpers/locales.php
index d209d414..4af750a3 100644
--- a/modules/gallery/helpers/locales.php
+++ b/modules/gallery/helpers/locales.php
@@ -131,9 +131,7 @@ class locales_Core {
}
static function is_rtl($locale=null) {
- $locale or $locale = Gallery_I18n::instance()->locale();
- list ($language, $territory) = explode('_', $locale . "_");
- return in_array($language, array("he", "fa", "ar"));
+ return Gallery_I18n::instance()->is_rtl($locale);
}
/**