Bug #16783 » file_upload_defaultFileUploads.patch
typo3/file_upload.php 2006-12-12 14:13:24.000000000 +0100 | ||
---|---|---|
$this->target = t3lib_div::_GP('target');
|
||
$this->returnUrl = t3lib_div::_GP('returnUrl');
|
||
if (empty($this->number) && $GLOBALS['BE_USER']->getTSConfig('options.defaultFileUploads')) {
|
||
$this->number = t3lib_div::intInRange($GLOBALS['BE_USER']->getTSConfig('options.defaultFileUploads'),1,$this->uploadNumber);
|
||
if (empty($this->number) && ($defaultNumber = $GLOBALS['BE_USER']->getTSConfig('options.defaultFileUploads'))) {
|
||
$this->number = t3lib_div::intInRange((is_array($defaultNumber) ? $defaultNumber['value'] : $defaultNumber),1,$this->uploadNumber);
|
||
}
|
||
// Init basic-file-functions object:
|
||
$this->basicff = t3lib_div::makeInstance('t3lib_basicFileFunctions');
|