Index: branches/5.2.x/core/units/languages/languages_item.php =================================================================== diff -u -N -r15137 -r15252 --- branches/5.2.x/core/units/languages/languages_item.php (.../languages_item.php) (revision 15137) +++ branches/5.2.x/core/units/languages/languages_item.php (.../languages_item.php) (revision 15252) @@ -1,6 +1,6 @@ values hash to load item by + * @param string $id_field_name Optional parameter to load item by given Id field + * @param bool $cachable cache this query result based on it's prefix serial + * @return bool True if item has been loaded, false otherwise + * @throws kRedirectException + */ public function Load($id, $id_field_name = null, $cachable = true) { $default = false; @@ -211,7 +221,10 @@ 'pass' => 'm' ); - $this->Application->Redirect('', $url_params); + $exception = new kRedirectException('Redirect into language ID = ' . $language_id . ' according to "Accepted-Language" header "' . $_SERVER['HTTP_ACCEPT_LANGUAGE'] . '"'); + $exception->setup('', $url_params); + + throw $exception; } } }