[TYPO3-core] Removing hook from tslib_content

Holzinger Franz franz at fholzinger.com
Tue Jan 31 21:19:40 CET 2006


Hello Stanislas,


why not let the hooks there?
They do not disturb, I think and could be usefull to others in the future.

Greets,

Franz


>This is a CVS patch request.
>
>Type: Code cleanup
>
>Description: Last week, we introduced a hook in tslib_content with the intent of using it from Direct Mail to insert dmail boundaries. However, Thorsten Kahler has since found a simpler way of achieving the same using TS. As we do not see any other use for the hook at this time, we propose to remove it.
>
>Branch: TYPO3_4-0
>
>Regards,
>Stanislas
>  
>
>------------------------------------------------------------------------
>
>--- CVS-TYPO3_4-0/typo3/sysext/cms/tslib/class.tslib_content.php	2006-01-27 14:34:05.000000000 +0100
>+++ typo3_src-4.0cvs/tslib/class.tslib_content.php	2006-01-31 13:40:03.000000000 +0100
>@@ -1187,15 +1187,6 @@
> 								$this->lastChanged($row['tstamp']);
> 								$cObj->start($row,$conf['table']);
> 								$tmpValue = $cObj->cObjGetSingle($renderObjName, $renderObjConf, $renderObjKey);
>-								if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['CType-content-itemProc']))	{
>-									$_params = array(
>-										'value' => &$tmpValue,
>-										'cObj' => &$cObj
>-									);
>-									foreach($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['CType-content-itemProc'] as $_funcRef)	{
>-										t3lib_div::callUserFunction($_funcRef,$_params,$this);
>-									}
>-								}
> 								$cobjValue .= $tmpValue;
> 							}# else debug($GLOBALS['TSFE']->recordRegister,'CONTENT');
> 						}
>@@ -1294,15 +1285,6 @@
> 						$this->lastChanged($row['tstamp']);
> 						$cObj->start($row,$val['table']);
> 						$tmpValue = $cObj->cObjGetSingle($renderObjName, $renderObjConf, $renderObjKey);
>-						if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['CType-content-itemProc']))	{
>-							$_params = array(
>-								'value' => &$tmpValue,
>-								'cObj' => &$cObj
>-							);
>-							foreach($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['CType-content-itemProc'] as $_funcRef)	{
>-								t3lib_div::callUserFunction($_funcRef,$_params,$this);
>-							}
>-						}
> 						$theValue .= $tmpValue;
> 					}# else debug($GLOBALS['TSFE']->recordRegister,'RECORDS');
> 				}
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>TYPO3-team-core mailing list
>TYPO3-team-core at lists.netfielders.de
>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-core
>




More information about the TYPO3-team-core mailing list