Commit 67ef4ea8 authored by Taylor Otwell's avatar Taylor Otwell

Refactor the lang class.

parent a7116e71
......@@ -100,8 +100,6 @@ class Lang {
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.");
......
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