Minor internal fixes
This commit is contained in:
@@ -51,12 +51,11 @@ abstract class lnApp_Site {
|
||||
$k = sprintf('%s_%s',strtolower($k),strtoupper($v));
|
||||
}
|
||||
|
||||
if ($x=ORM::factory('Language',array('iso'=>$k)))
|
||||
if ($x=ORM::factory('Language',array('iso'=>$k)) AND $x->loaded())
|
||||
return $x;
|
||||
}
|
||||
|
||||
// @todo Return Default Language
|
||||
return Kohana::$config->load('config')->language;
|
||||
return ORM::factory('Language',array('iso'=>Kohana::$config->load('config')->language));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user