Refactor the lang class.

This commit is contained in:
Taylor Otwell 2011-08-08 09:12:23 -05:00
parent a7116e71f6
commit 67ef4ea865
1 changed files with 0 additions and 2 deletions

View File

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