Avoid noticed that TMP is defined. Can be possibly defined in cake.php

This commit is contained in:
Simon Males 2013-04-17 15:06:24 +08:00
parent aee8b50507
commit 9c113247de

View file

@ -123,7 +123,7 @@ class ShellDispatcher {
define('APP_DIR', $this->params['app']); define('APP_DIR', $this->params['app']);
define('APP', $this->params['working'] . DS); define('APP', $this->params['working'] . DS);
define('WWW_ROOT', APP . $this->params['webroot'] . DS); define('WWW_ROOT', APP . $this->params['webroot'] . DS);
if (!is_dir(ROOT . DS . APP_DIR . DS . 'tmp')) { if (!is_dir(ROOT . DS . APP_DIR . DS . 'tmp') && !defined('TMP')) {
define('TMP', CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'Console' . DS . 'Templates' . DS . 'skel' . DS . 'tmp' . DS); define('TMP', CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'Console' . DS . 'Templates' . DS . 'skel' . DS . 'tmp' . DS);
} }
$boot = file_exists(ROOT . DS . APP_DIR . DS . 'Config' . DS . 'bootstrap.php'); $boot = file_exists(ROOT . DS . APP_DIR . DS . 'Config' . DS . 'bootstrap.php');