mlanthaler: Check if TEMP_FOLDER was already defined before defining it so that the user can set the temporary folder himself.

(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41974 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-09-16 00:23:00 +00:00
parent 9af317a264
commit 12afad7f1e

View File

@ -34,9 +34,14 @@ function getTempFolder() {
return $ssTmp;
/**
* Define the temporary folder if it wasn't defined yet
*/
if(!defined('TEMP_FOLDER')) {
define('TEMP_FOLDER', getTempFolder());
}
define('TEMP_FOLDER', getTempFolder());
/**
* Sapphire class autoloader. Requires the ManifestBuilder to work.