Refactor the lang class.
This commit is contained in:
parent
a7116e71f6
commit
67ef4ea865
|
@ -100,8 +100,6 @@ private function parse($key, $language)
|
|||
|
||||
if ($module != 'application') $key = substr($key, strpos($key, ':') + 2);
|
||||
|
||||
$segments = explode('.', $key);
|
||||
|
||||
if (count($segments = explode('.', $key)) > 1) return array($module, $segments[0], $segments[1]);
|
||||
|
||||
throw new \Exception("Invalid language line [$key]. A specific line must be specified.");
|
||||
|
|
Loading…
Reference in New Issue