Project

General

Profile

Bug #20569 ยป 0011268.patch

Administrator Admin, 2009-06-04 17:26

View differences:

t3lib/class.t3lib_frontendedit.php (Arbeitskopie)
protected $tce;
/**
* Creates and initializes the TCEmain object.
*
* @return void
*/
public function __construct() {
$this->tce = t3lib_div::makeInstance('t3lib_TCEmain');
$this->tce->stripslashes_values=0;
}
/**
* Initializes configuration options.
*
* @return void
......
if ($hideField) {
$recData = array();
$recData[$table][$uid][$hideField] = 1;
$this->initializeTceMain();
$this->tce->start($recData, array());
$this->tce->process_datamap();
}
......
if ($hideField) {
$recData = array();
$recData[$table][$uid][$hideField] = 0;
$this->initializeTceMain();
$this->tce->start($recData, array());
$this->tce->process_datamap();
}
......
}
}
if (!empty($cmdData)) {
$this->initializeTceMain();
$this->tce->start(array(), $cmdData);
$this->tce->process_cmdmap();
}
......
public function doDelete($table, $uid) {
$cmdData[$table][$uid]['delete'] = 1;
if (count($cmdData)) {
$this->initializeTceMain();
$this->tce->start(array(), $cmdData);
$this->tce->process_cmdmap();
}
......
$data = $this->TSFE_EDIT['data'];
if (!empty($data)) {
$this->initializeTceMain();
$this->tce->start($data, array());
$this->tce->process_uploads($_FILES);
$this->tce->process_datamap();
......
// No special hidden fields needed.
return array();
}
/**
* Initializes t3lib_TCEmain since it is used on modification actions.
*
* @return void
*/
protected function initializeTceMain() {
if (!isset($this->tce)) {
$this->tce = t3lib_div::makeInstance('t3lib_TCEmain');
$this->tce->stripslashes_values=0;
}
}
}
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_frontendedit.php']) {
t3lib/class.t3lib_tsfebeuserauth.php (Arbeitskopie)
* @return void
*/
public function initializeFrontendEdit() {
if (isset($this->extAdminConfig['enable.'])) {
if (isset($this->extAdminConfig['enable.']) && $this->isFrontendEditingActive()) {
foreach($this->extAdminConfig['enable.'] as $key => $value) {
if ($value) {
if ($GLOBALS['TSFE'] instanceof tslib_fe) {
    (1-1/1)