Skip to content

Commit

Permalink
Dev Fixed issue with console app not using helper.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa committed Jun 11, 2015
1 parent 1cd00a8 commit 8904bce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/core/ConsoleApplication.php
Expand Up @@ -24,14 +24,14 @@ class ConsoleApplication extends CConsoleApplication

public function __construct($config = null) {
$this->installed = isset($config['components']['db']['connectionString']);
Yii::import('application.helpers.common_helper', true);
// Silent fail on unknown configuration keys.
foreach($config as $key => $value) {
if (!property_exists(__CLASS__, $key) && !$this->hasProperty($key)) {
unset($config[$key]);
}
}
parent::__construct($config);
Yii::import('application.helpers.common_helper', true);
}

public function init() {
Expand Down

0 comments on commit 8904bce

Please sign in to comment.