Refactoring the config class.
This commit is contained in:
@@ -79,9 +79,7 @@ class Config {
|
|||||||
|
|
||||||
if ($module !== 'application') $key = substr($key, strpos($key, ':') + 2);
|
if ($module !== 'application') $key = substr($key, strpos($key, ':') + 2);
|
||||||
|
|
||||||
$segments = explode('.', $key);
|
$key = (count($segments = explode('.', $key)) > 1) ? implode('.', array_slice($segments, 1)) : null;
|
||||||
|
|
||||||
$key = (count($segments) > 1) ? implode('.', array_slice($segments, 1)) : null;
|
|
||||||
|
|
||||||
return array($module, $segments[0], $key);
|
return array($module, $segments[0], $key);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user