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
This commit is contained in:
gwoo 2008-06-07 22:09:40 +00:00
parent 7b7a45f66b
commit 76acfafa5a
2 changed files with 1 additions and 1 deletions

View file

@ -234,6 +234,7 @@ class ShellDispatcher {
if (!file_exists(APP_PATH . 'config' . DS . 'core.php')) { 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'; 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); Configure::write('debug', 1);

View file

@ -437,7 +437,6 @@ class EmailComponent extends Object{
* @access private * @access private
*/ */
function __createHeader() { function __createHeader() {
//$this->__header = '';
if ($this->delivery == 'smtp') { if ($this->delivery == 'smtp') {
$this->__header = 'To: ' . $this->__formatAddress($this->to) . $this->_newLine; $this->__header = 'To: ' . $this->__formatAddress($this->to) . $this->_newLine;
} }