Project

General

Profile

Bug #17061 » mailForm_localized.patch

Administrator Admin, 2007-03-01 17:09

View differences:

./typo3/sysext/cms/tslib/class.tslib_content.php 2007-03-01 17:06:28.632723360 +0100
* @param string $table the table that the data record is from.
* @return void
*/
function start($data,$table='') {
$this->data = $data;
$this->currentRecord = $table ? $table.':'.$this->data['uid'] : '';
$this->parameters = Array();
function start($data,$table='') {
$this->data = $data;
$this->currentRecord = $table ? $table.':'.$this->getCurrentRecord($this->data) : '';
$this->parameters = Array();
}
/**
* returns the curren record id (depends on LOCALIZED)
*
* @param array $data the record data that is rendered.
* @return int
*/
function getCurrentRecord($data)
{
if (isset($data["_LOCALIZED_UID"]))
{
return $data["_LOCALIZED_UID"];
}
return $data['uid'];
}
/**
* Sets the internal variable parentRecord with information about current record.
(1-1/2)