diff --git a/laravel/config.php b/laravel/config.php index 853b1284..2f49ccf9 100644 --- a/laravel/config.php +++ b/laravel/config.php @@ -136,7 +136,7 @@ class Config { foreach (static::paths($module, $file) as $directory) { - $config = (file_exists($path = $directory.$file.EXT)) ? array_merge($config, require $path) : $config; + if (file_exists($path = $directory.$file.EXT)) $config = array_merge($config, require $path); } if (count($config) > 0) static::$items[$module][$file] = $config; @@ -150,9 +150,9 @@ class Config { * The paths returned by this method paths will be searched by the load method when merging * configuration files, meaning the configuration files will cascade in this order. * - * By default, the base configuration directory will be searched first, followed by the configuration - * directory for the active module. Next, any environment specific configuration directories - * will be searched. + * By default, the system configuration directory will be searched first, followed by the configuration + * configuration directory for the active module. Next, any environment specific configuration + * directories are searched. * * @param string $module * @param string $file