Skip to content

Commit

Permalink
fix getting configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingguzman committed Feb 12, 2017
1 parent 9086cee commit fd180e1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions api/core/Directus/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,14 @@ private static function app()

private static function config()
{
self::requireConstants('BASE_PATH', __FUNCTION__);
$config = require APPLICATION_PATH . '/api/configuration.php';
$config = [];
if (defined('APPLICATION_PATH')) {
$configPath = APPLICATION_PATH . '/api/configuration.php';
if (file_exists($configPath)) {
$config = require $configPath;
}
}

return $config;
}

Expand Down

0 comments on commit fd180e1

Please sign in to comment.