Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/Configula/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ public function __construct($configPath = null, $defaults = array())

//Load the config files
if ($configPath) {
//Append trailing slash
if (substr($configPath, strlen($configPath) - 1) != DIRECTORY_SEPARATOR) {
$configPath .= DIRECTORY_SEPARATOR;
}

$this->loadConfig($configPath);
}
}
Expand All @@ -68,6 +63,11 @@ public function __construct($configPath = null, $defaults = array())
*/
public function loadConfig($configPath)
{
//Append trailing slash
if (substr($configPath, strlen($configPath) - 1) != DIRECTORY_SEPARATOR) {
$configPath .= DIRECTORY_SEPARATOR;
}

//Array to hold the configuration items as we get them
$config = array();

Expand Down