refactoring lang class.

This commit is contained in:
Taylor Otwell 2011-08-14 22:34:22 -05:00
parent b196313bd0
commit 0cc0b7ac97
1 changed files with 1 additions and 4 deletions

View File

@ -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);