Project

General

Profile

Feature #16323 » 6039_v3.patch

Administrator Admin, 2008-02-28 00:32

View differences:

t3lib/class.t3lib_refindex.php (working copy)
$realFile = $dest.'/'.trim($file);
# if (@is_file($realFile)) { // Now, the refernece index should NOT look if files exist - just faithfully include them if they are in the records!
$newValueFiles[] = array(
'filename' => $file,
'filename' => basename($file),
'ID' => md5($realFile),
'ID_absFile' => $realFile
); // the order should be preserved here because.. (?)
......
* @return string Input folder prefixed with PATH_site. No checking for existence is done. Output must be a folder without trailing slash.
*/
function destPathFromUploadFolder($folder) {
if (!$folder) {
return substr(PATH_site, 0, -1);
}
return PATH_site.$folder;
}
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();
}
//store path relative to site root (if uploadfolder is not set)
} else {
if (count($valueArray)){
foreach($valueArray as &$theFile){
if (t3lib_div::isFirstPartOfStr($theFile,PATH_site)) {
$theFile = substr($theFile,strlen(PATH_site));
}
}
}
}
return $valueArray;
(3-3/15)