From 8904bcec210689b998a7a7a26c2886f5aee9e91c Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 11 Jun 2015 12:37:52 +0200 Subject: [PATCH] Dev Fixed issue with console app not using helper. --- application/core/ConsoleApplication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/core/ConsoleApplication.php b/application/core/ConsoleApplication.php index bfb1cb665f8..8566a8af719 100644 --- a/application/core/ConsoleApplication.php +++ b/application/core/ConsoleApplication.php @@ -24,7 +24,6 @@ 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)) { @@ -32,6 +31,7 @@ public function __construct($config = null) { } } parent::__construct($config); + Yii::import('application.helpers.common_helper', true); } public function init() {