Skip to content

Commit

Permalink
dev: sql logging broke installer
Browse files Browse the repository at this point in the history
  • Loading branch information
mennodekker committed Nov 11, 2012
1 parent c6a65f7 commit 82fc410
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions application/core/LSYii_Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@ class LSYii_Application extends CWebApplication
*/
public function __construct($config = null)
{
if (!file_exists($config))
if (is_string($config) && !file_exists($config))
{
$config = APPPATH . 'config/config-sample' . EXT;
} else {
if(is_string($config)) {
$config = require($config);
}
}
if(is_string($config)) {
$config = require($config);
}

if ($config['config']['debug'] == 2)
Expand Down

0 comments on commit 82fc410

Please sign in to comment.