From b108f44dd5ad9126aab6241f056624a5d1adf5da Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 18 Aug 2006 01:39:27 +0000 Subject: [PATCH] r1057: Wrong argument order for in_array() --- includes/api_language.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api_language.php b/includes/api_language.php index 104bd95..50a2d63 100644 --- a/includes/api_language.php +++ b/includes/api_language.php @@ -122,7 +122,7 @@ class LanguageAPI extends API */ function verify_direction() { - if (!in_array(array('ltr', 'rtl'), $this->values['direction'])) + if (!in_array($this->values['direction'], array('ltr', 'rtl'))) { return _('The direction must be ltr (left-to-right) or rtl (right-to-left)'); } -- 2.22.5