Skip to content

Commit

Permalink
Merge pull request #222 from robert-h-curry/6667-install-use-temp-fol…
Browse files Browse the repository at this point in the history
…der-override-rc

Issue #6667: Use TEMP_FOLDER in install.php
  • Loading branch information
Sean Harvey committed Mar 9, 2012
2 parents e307594 + ecb279c commit ae45ef3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dev/install/install.php5
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,9 @@ class InstallRequirements {
}

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();
} elseif(function_exists('sys_get_temp_dir')) {
$sysTmp = sys_get_temp_dir();
Expand Down

0 comments on commit ae45ef3

Please sign in to comment.