prevent creating tmp dirs all over the file system if running

'anonymous' shells
This commit is contained in:
AD7six 2010-02-23 11:05:38 +01:00 committed by Mark Story
parent 8dfadafc88
commit a38846b611

View file

@ -244,6 +244,9 @@ class ShellDispatcher {
define('APP_DIR', $this->params['app']); define('APP_DIR', $this->params['app']);
define('APP_PATH', $this->params['working'] . DS); define('APP_PATH', $this->params['working'] . DS);
define('WWW_ROOT', APP_PATH . $this->params['webroot'] . 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( $includes = array(
CORE_PATH . 'cake' . DS . 'config' . DS . 'paths.php', CORE_PATH . 'cake' . DS . 'config' . DS . 'paths.php',