Tiny bug with date function in t3lib_befunc. Casted timestamp to integer.
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_extfilefunc.php
index 08de1c2..be8738c 100644 (file)
@@ -2,7 +2,7 @@
 /***************************************************************
 *  Copyright notice
 *
-*  (c) 1999-2008 Kasper Skaarhoj (kasperYYYY@typo3.com)
+*  (c) 1999-2009 Kasper Skaarhoj (kasperYYYY@typo3.com)
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
@@ -163,11 +163,11 @@ class t3lib_extFileFunctions extends t3lib_basicFileFunctions     {
                $this->unzipPath = $GLOBALS['TYPO3_CONF_VARS']['BE']['unzip_path'];
 
                $maxFileSize = intval($GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize']);
-               if ($maxFileSize>0)     {
+               if ($maxFileSize > 0) {
                        $this->maxCopyFileSize = $maxFileSize;
                        $this->maxMoveFileSize = $maxFileSize;
-                       $this->maxUploadFileSize = $maxFileSize;
                }
+               $this->maxUploadFileSize = t3lib_div::getMaxUploadFileSize();
 
                        // Initializing file processing commands:
                $this->fileCmdMap = $fileCmds;
@@ -210,7 +210,7 @@ class t3lib_extFileFunctions extends t3lib_basicFileFunctions       {
        /**
         * Processing the command array in $this->fileCmdMap
         *
-        * @return      mixed   false, if the file functions were not initialized 
+        * @return      mixed   false, if the file functions were not initialized
         *                                      otherwise returns an array of all the results that are returned
         *                                      from each command, separated in each action.
         */
@@ -240,7 +240,7 @@ class t3lib_extFileFunctions extends t3lib_basicFileFunctions       {
 
                                        // Traverse all action data. More than one file might be affected at the same time.
                                if (is_array($actionData)) {
-                                   $result[$action] = array();
+                                       $result[$action] = array();
                                        foreach ($actionData as $cmdArr) {
 
                                                        // Clear file stats