mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
9af317a264
commit
12afad7f1e
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user