Commit 5e28cd08 authored by Taylor Otwell's avatar Taylor Otwell

Refactoring the config class.

parent 1091bd85
......@@ -79,9 +79,7 @@ class Config {
if ($module !== 'application') $key = substr($key, strpos($key, ':') + 2);
$segments = explode('.', $key);
$key = (count($segments) > 1) ? implode('.', array_slice($segments, 1)) : null;
$key = (count($segments = explode('.', $key)) > 1) ? implode('.', array_slice($segments, 1)) : null;
return array($module, $segments[0], $key);
}
......
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