Skip to content

Commit

Permalink
prevent creating tmp dirs all over the file system if running
Browse files Browse the repository at this point in the history
'anonymous' shells
  • Loading branch information
AD7six authored and markstory committed Feb 28, 2010
1 parent 8dfadaf commit a38846b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cake/console/cake.php
Expand Up @@ -244,6 +244,9 @@ function __bootstrap() {
define('APP_DIR', $this->params['app']);
define('APP_PATH', $this->params['working'] . DS);
define('WWW_ROOT', APP_PATH . $this->params['webroot'] . DS);
if (!is_dir(ROOT . DS . APP_DIR . DS . 'tmp')) {
define('TMP', CORE_PATH . 'cake' . DS . 'console' . DS . 'templates' . DS . 'skel' . DS . 'tmp' . DS);
}

$includes = array(
CORE_PATH . 'cake' . DS . 'config' . DS . 'paths.php',
Expand Down

0 comments on commit a38846b

Please sign in to comment.