mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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:
parent
7b7a45f66b
commit
76acfafa5a
2 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue