Issue #6667: Check for TEMP_FOLDER _ss_envrionment override in install script.

This commit is contained in:
Robert Curry 2012-03-09 14:44:19 +13:00
parent e307594c05
commit ecb279c33e

View File

@ -670,7 +670,9 @@ class InstallRequirements {
} }
function getTempFolder() { function getTempFolder() {
if(file_exists($this->getBaseDir() . 'silverstripe-cache')) { if (defined('TEMP_FOLDER')) {
$sysTmp = TEMP_FOLDER;
} elseif(file_exists($this->getBaseDir() . 'silverstripe-cache')) {
$sysTmp = $this->getBaseDir(); $sysTmp = $this->getBaseDir();
} elseif(function_exists('sys_get_temp_dir')) { } elseif(function_exists('sys_get_temp_dir')) {
$sysTmp = sys_get_temp_dir(); $sysTmp = sys_get_temp_dir();