Feature #16323 » 6039_v2.patch
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;
|
||
}
|
||
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:
|
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 $key => $theFile){
|
||
if (t3lib_div::isFirstPartOfStr($theFile,PATH_site)) {
|
||
$valueArray[$key] = substr($theFile,strlen(PATH_site));
|
||
}
|
||
}
|
||
}
|
||
}
|
||
return $valueArray;
|