refactoring lang class.
This commit is contained in:
parent
b196313bd0
commit
0cc0b7ac97
|
@ -63,10 +63,7 @@ public static function line($key, $replacements = array())
|
|||
*/
|
||||
public function get($language = null, $default = null)
|
||||
{
|
||||
if (is_null($language))
|
||||
{
|
||||
$language = Config::get('application.language');
|
||||
}
|
||||
if (is_null($language)) $language = Config::get('application.language');
|
||||
|
||||
list($module, $file, $line) = $this->parse($this->key, $language);
|
||||
|
||||
|
|
Loading…
Reference in New Issue