diff --git a/fuel/modules/fuel/libraries/Fuel_language.php b/fuel/modules/fuel/libraries/Fuel_language.php index 21eb5fb69..338b4e020 100644 --- a/fuel/modules/fuel/libraries/Fuel_language.php +++ b/fuel/modules/fuel/libraries/Fuel_language.php @@ -262,7 +262,7 @@ public function is_default($lang) return TRUE; } // the default is the first option of the list - $default = key($this->options); + $default = $this->default_option(); return $lang == $default; } @@ -606,7 +606,7 @@ function lang_segment($uri = NULL, $routed = 'both') * Cleans a URI string value of any language segements * * @access public - * @param string The URI string to check. If none provided, will use the regment_array or rsegment_array on the URI object (optional) + * @param string The URI string to check. If none provided, will use the rsegment_array or rsegment_array on the URI object (optional) * @param boolean Determines whether to use a routed (TRUE), non-routed (FALSE) when looking at the URI segment if one is not provided in first argument (optional) * @return string */ @@ -622,7 +622,7 @@ function cleaned_uri($uri = NULL, $routed = FALSE) * Cleans a URI segments of any language segements * * @access public - * @param string The URI string to check. If none provided, will use the regment_array or rsegment_array on the URI object (optional) + * @param string The URI string to check. If none provided, will use the rsegment_array or rsegment_array on the URI object (optional) * @param boolean Determines whether to use a routed (TRUE), non-routed (FALSE) when looking at the URI segment if one is not provided in first argument (optional) * @return string */