Permalink
Browse files

prevent creating tmp dirs all over the file system if running

'anonymous' shells
  • Loading branch information...
1 parent 8dfadaf commit a38846b6114877e1e9b7ed8c592e7ff58a8ecf80 @AD7six AD7six committed with markstory Feb 23, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 cake/console/cake.php
View
@@ -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',

0 comments on commit a38846b

Please sign in to comment.