From 67ef4ea865c20fe429883a173a57b31b40d4fe13 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 8 Aug 2011 09:12:23 -0500 Subject: [PATCH] Refactor the lang class. --- system/lang.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/system/lang.php b/system/lang.php index f54db0b0..d9ca04f3 100644 --- a/system/lang.php +++ b/system/lang.php @@ -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.");