mirror of
https://github.com/Oreolek/kohana-multilang.git
synced 2024-04-25 21:59:29 +03:00
small fix for kohana 3.1.2
This commit is contained in:
parent
4b25a97dae
commit
bce79d53a8
|
@ -24,7 +24,7 @@ class Multilang_Request extends Kohana_Request {
|
||||||
* @param Kohana_Cache cache object
|
* @param Kohana_Cache cache object
|
||||||
* @return Request
|
* @return Request
|
||||||
*/
|
*/
|
||||||
public static function factory($uri = TRUE, Cache $cache = NULL)
|
public static function factory($uri = TRUE, Cache $cache = NULL, $injected_routes = array())
|
||||||
{
|
{
|
||||||
if(!Kohana::$is_cli)
|
if(!Kohana::$is_cli)
|
||||||
{
|
{
|
||||||
|
@ -72,7 +72,7 @@ class Multilang_Request extends Kohana_Request {
|
||||||
$uri = (string) substr($uri, strlen(Request::$lang));
|
$uri = (string) substr($uri, strlen(Request::$lang));
|
||||||
}
|
}
|
||||||
// Continue normal request processing with the URI without language*/
|
// Continue normal request processing with the URI without language*/
|
||||||
return parent::factory($uri, $cache);
|
return parent::factory($uri, $cache, $injected_routes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue