Project

General

Profile

Feature #16323 » 6039.patch

Administrator Admin, 2008-02-27 01:48

View differences:

t3lib/class.t3lib_tceforms.php (working copy)
if(!$disabled && !(isset($config['disable_controls']) && t3lib_div::inList($config['disable_controls'], 'upload'))) {
// Adding the upload field:
if ($this->edit_docModuleUpload) $item.='<input type="file" name="'.$PA['itemFormElName_file'].'"'.$this->formWidth().' size="60" />';
if ($this->edit_docModuleUpload && $config['uploadfolder']!="") $item.='<input type="file" name="'.$PA['itemFormElName_file'].'"'.$this->formWidth().' size="60" />';
}
break;
case 'db': // If the element is of the internal type "db":
......
while(list(,$pp)=each($itemArray)) {
$pParts = explode('|',$pp);
$uidList[]=$pUid=$pTitle = $pParts[0];
$opt[]='<option value="'.htmlspecialchars(rawurldecode($pParts[0])).'">'.htmlspecialchars(rawurldecode($pParts[0])).'</option>';
$opt[]='<option value="'.htmlspecialchars(rawurldecode($pParts[0])).'">'.htmlspecialchars(basename(rawurldecode($pParts[0]))).'</option>';
}
break;
default:
t3lib/class.t3lib_tcemain.php (working copy)
}
$valueArray = $dbAnalysis->countItems();
}
//return path relative to fileadmin Folder (if uploadfolder is not set)
} else {
if (count($valueArray)){
foreach($valueArray as $key => $theFile){
$valueArray[$key] = substr($theFile, strpos($theFile, "fileadmin/"));
}
}
}
return $valueArray;
(1-1/15)