From 76acfafa5a2b02a1fe43b0e3692a01b05f1e1800 Mon Sep 17 00:00:00 2001 From: gwoo Date: Sat, 7 Jun 2008 22:09:40 +0000 Subject: [PATCH] fixes #4848, console building paths when config does not exist. git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7138 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/console/cake.php | 1 + cake/libs/controller/components/email.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/console/cake.php b/cake/console/cake.php index 936053558..2ca2343ef 100644 --- a/cake/console/cake.php +++ b/cake/console/cake.php @@ -234,6 +234,7 @@ class ShellDispatcher { if (!file_exists(APP_PATH . 'config' . DS . 'core.php')) { include_once CORE_PATH . 'cake' . DS . 'console' . DS . 'libs' . DS . 'templates' . DS . 'skel' . DS . 'config' . DS . 'core.php'; + Configure::buildPaths(array()); } Configure::write('debug', 1); diff --git a/cake/libs/controller/components/email.php b/cake/libs/controller/components/email.php index 3cbbaa881..745a91df1 100644 --- a/cake/libs/controller/components/email.php +++ b/cake/libs/controller/components/email.php @@ -437,7 +437,6 @@ class EmailComponent extends Object{ * @access private */ function __createHeader() { - //$this->__header = ''; if ($this->delivery == 'smtp') { $this->__header = 'To: ' . $this->__formatAddress($this->to) . $this->_newLine; }