diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-03-03 16:03:56 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-03-03 16:03:56 +0000 |
| commit | 7650468c881376695deccdc6f3d4dfbecd867981 (patch) | |
| tree | ce8698a6322eb5ddada8498233b0ebdf1da1784b | |
| parent | db539aadfdc05f5852d52cc3bd8dcb23bb5e4288 (diff) | |
| download | liberty-7650468c881376695deccdc6f3d4dfbecd867981.tar.gz liberty-7650468c881376695deccdc6f3d4dfbecd867981.tar.bz2 liberty-7650468c881376695deccdc6f3d4dfbecd867981.zip | |
use get_temp_dir() function defined in preflight to get valid temp dir
| -rw-r--r-- | LibertyAttachable.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LibertyAttachable.php b/LibertyAttachable.php index 07fedb8..92cc58d 100644 --- a/LibertyAttachable.php +++ b/LibertyAttachable.php @@ -3,7 +3,7 @@ * Management of Liberty Content * * @package liberty - * @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyAttachable.php,v 1.64 2007/02/26 21:06:39 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyAttachable.php,v 1.65 2007/03/03 16:03:56 squareing Exp $ * @author spider <spider@steelsun.com> */ // +----------------------------------------------------------------------+ @@ -645,7 +645,7 @@ function liberty_process_archive( &$pFileHash ) { // we'll copy the file. in the case of xuploaded files, the files have been // processed but don't have to be copied if( empty( $pFileHash['preprocessed'] ) && !is_uploaded_file( $pFileHash['tmp_name'] ) && is_file( $pFileHash['tmp_name'] ) ) { - $tmpDir = ini_get('upload_tmp_dir'); + $tmpDir = get_temp_dir(); $copyFile = tempnam( !empty( $tmpDir ) ? $tmpDir : '/tmp', $pFileHash['name'] ); copy( $pFileHash['tmp_name'], $copyFile ); $pFileHash['tmp_name'] = $copyFile; |
