mirror of
https://github.com/Oreolek/kohana-multilang.git
synced 2024-04-29 23:59:24 +03:00
fix for routes without any language
This commit is contained in:
parent
29b91f4ba7
commit
e31d0a77ab
|
@ -49,8 +49,8 @@ class Multilang_Request extends Kohana_Request {
|
||||||
|
|
||||||
$request = parent::factory($uri, $cache, $injected_routes);
|
$request = parent::factory($uri, $cache, $injected_routes);
|
||||||
|
|
||||||
// If the default language is hidden, we manually set it
|
// If the default language is hidden or there is no language, we manually set it to default
|
||||||
if(Kohana::config('multilang.hide_default') && $request->param('lang') === NULL)
|
if(Kohana::config('multilang.hide_default') && $request->param('lang') === NULL || $request->route()->lang === NULL)
|
||||||
{
|
{
|
||||||
Request::$lang = Kohana::config('multilang.default');
|
Request::$lang = Kohana::config('multilang.default');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue