Refactor the lang class.
This commit is contained in:
@@ -100,8 +100,6 @@ class Lang {
|
|||||||
|
|
||||||
if ($module != 'application') $key = substr($key, strpos($key, ':') + 2);
|
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]);
|
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.");
|
throw new \Exception("Invalid language line [$key]. A specific line must be specified.");
|
||||||
|
|||||||
Reference in New Issue
Block a user