Commit 0cc0b7ac authored by Taylor Otwell's avatar Taylor Otwell

refactoring lang class.

parent b196313b
...@@ -63,10 +63,7 @@ class Lang { ...@@ -63,10 +63,7 @@ class Lang {
*/ */
public function get($language = null, $default = null) public function get($language = null, $default = null)
{ {
if (is_null($language)) if (is_null($language)) $language = Config::get('application.language');
{
$language = Config::get('application.language');
}
list($module, $file, $line) = $this->parse($this->key, $language); list($module, $file, $line) = $this->parse($this->key, $language);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment