[TYPO3-core] RFC #10673: Feature Request: Enable CSC "uploads" filelist to be manipulated by TS

Bernhard Kraft kraftb at kraftb.at
Tue Apr 28 17:57:43 CEST 2009


Steffen Ritter wrote:

> No functional change happened! All things work as before!

Hi !

Probably you should change this check:

-------------------------------------------------------------------
if (is_array($GLOBALS['TCA']['tt_content']['columns'][$field])) {
		// in TCA-Array folders are saved without trailing slash, so $path.$fileName won't work
	$path = $GLOBALS['TCA']['tt_content']['columns'][$field]['config']['uploadfolder'] .'/';
}
-------------------------------------------------------------------

To contain the full array-path in the "if" ... like:

if ($GLOBALS['TCA']['tt_content']['columns'][$field]['config']['uploadfolder']) {
  ...
}

Else you would set $path to an empty value if no uploadfolder is specified ...

Anyways: +1


greets,
Bernhard
-- 
Freiheit ist immer Freiheit des Andersdenkenden.
Rosa Luxemburg, 1871-1919
--------------------------------------------------
www.think-open.at


More information about the TYPO3-team-core mailing list