[Typo3-shop] tt_products issues..

Franz Holzinger franz at fholzinger.com
Sat Apr 23 19:36:37 CEST 2005


Hello Vladimir,

>>and this is the line 125 from class.tx_ttproducts.php:
>>$this->tt_product_single = t3lib_div::_GET("tt_products");
>>
>>I suspect that I either I haven't t3lib_div library or I din't set it 
>>somewhere.
>>
> 
> 
> Although there are a lot of other functions that are in this library and are 
> called from class.tx_ttproducts.php and there are no problems with them. So 
> the above statement is probably wrong.
> 
This statement has been in this code for a very long time.

It calls a method in the file class.t3lib_div.php:

/**
  * Returns the global GET array (or value from) normalized to contain 
un-escaped values.
  * ALWAYS use this API function to acquire the GET variables!
  * Usage: 27
  *
  * @param	string		Optional pointer to value in GET array (basically 
name of GET var)
  * @return	mixed		If $var is set it returns the value of $_GET[$var]. 
If $var is NULL (default), returns $_GET itself. In any case *slashes 
are stipped from the output!*
  * @see _POST(), _GP(), _GETset()
  */
function _GET($var=NULL)	{
	$value = ($var === NULL) ? $_GET : (empty($var) ? NULL : $_GET[$var]);
	if (isset($value))	{	// Removes slashes since TYPO3 has added them 
regardless of magic_quotes setting.
		if (is_array($value))	{ t3lib_div::stripSlashesOnArray($value); } else 
{ $value = stripslashes($value); }
	}
	return $value;
}

Check this file in your installation.

Franz



More information about the TYPO3-project-tt-products mailing list