mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
prevent creating tmp dirs all over the file system if running
'anonymous' shells
This commit is contained in:
parent
8dfadafc88
commit
a38846b611
1 changed files with 3 additions and 0 deletions
|
@ -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',
|
||||||
|
|
Loading…
Add table
Reference in a new issue