Project

General

Profile

Bug #19380 » patch_0009436_20100601.diff

Administrator Admin, 2010-06-01 14:07

View differences:

typo3_src-4.4.0beta3/typo3/sysext/cms/tslib/media/scripts/fe_adminLib.inc 2010-06-01 13:58:23.000000000 +0200
// Setting the hardcoded lists of fields allowed for editing and creation.
$this->fieldList=implode(',',t3lib_div::trimExplode(',',$GLOBALS['TCA'][$this->theTable]['feInterface']['fe_admin_fieldList'],1));
$this->orderBy = strtr($GLOBALS['TCA'][$this->theTable]['ctrl']['default_sortby'],array('ORDER BY '=>''));
if ($this->conf['orderBy']) $this->orderBy = $this->conf['orderBy'];
// globally substituted markers, fonts and colors.
$splitMark = md5(microtime());
list($this->markerArray['###GW1B###'],$this->markerArray['###GW1E###']) = explode($splitMark,$this->cObj->stdWrap($splitMark,$this->conf['wrap1.']));
......
} elseif ($GLOBALS['TSFE']->loginUser) { // If the recUid did not select a record, we display a menu of records. (eg. if no recUid)
$lockPid = $this->conf['edit.']['menuLockPid'] ? ' AND pid='.intval($this->thePid) : '';
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', $this->theTable, '1 '.$lockPid.$this->cObj->DBmayFEUserEditSelect($this->theTable,$GLOBALS['TSFE']->fe_user->user, $this->conf['allowedGroups'],$this->conf['fe_userEditSelf']).$GLOBALS['TSFE']->sys_page->deleteClause($this->theTable));
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*',
$this->theTable,
'1 ' .
$lockPid .
$this->cObj->DBmayFEUserEditSelect($this->theTable,
$GLOBALS['TSFE']->fe_user->user,
$this->conf['allowedGroups'],
$this->conf['fe_userEditSelf']
) .
$GLOBALS['TSFE']->sys_page->deleteClause($this->theTable),
'', //groupBy
$this->orderby,
'' // limit
);
if ($GLOBALS['TYPO3_DB']->sql_num_rows($res)) { // If there are menu-items ...
$templateCode = $this->getPlainTemplate('###TEMPLATE_EDITMENU###');
(2-2/2)