Project

General

Profile

Bug #19968 ยป 0010351.diff

Administrator Admin, 2009-02-04 23:42

View differences:

t3lib/class.t3lib_frontendedit.php (working copy)
}
if ($GLOBALS['TSFE']->forceTemplateParsing || $GLOBALS['TSFE']->displayEditIcons || $GLOBALS['TSFE']->displayFieldEditIcons) {
$GLOBALS['TSFE']->set_no_cache();
$GLOBALS['TSFE']->set_no_cache();
}
}
......
* @return string The setting value
*/
public function extGetFeAdminValue($pre, $val='') {
// Check if module is enabled.
// Check if module is enabled.
if ($this->isAdminModuleEnabled($pre)) {
// Exceptions where the values can be overridden from backend:
// deprecated
......
****************************************************/
/**
* Returns true in an edit-action is sent from the Admin Panel
* Returns true if an edit-action is sent from the Admin Panel
*
* @return boolean
* @see index_ts.php
......
public function isEditFormShown() {
if (is_array($this->TSFE_EDIT)) {
$cmd = (string) $this->TSFE_EDIT['cmd'];
if ($cmd=='edit' || $cmd=='new') {
if ($cmd == 'edit' || $cmd == 'new') {
return true;
}
}
......
$lang = -1;
}
if ($GLOBALS['BE_USER']->checkLanguageAccess($lang)) {
if ($GLOBALS['BE_USER']->checkLanguageAccess($lang)) {
$languageAccess = true;
} else {
$languageAccess = false;
......
$allow = $this->getAllowedEditActions($table, $conf, $dataArray['pid'], $allow);
// Can only display editbox if there are options in the menu
if (count($allow)) {
if (count($allow)) {
$mayEdit = true;
}
} else {
......
/**
* Takes an array of generally allowed actions and filters that list based on page and content permissions.
*
*
* @param string The name of the table.
* @param array The configuration array.
* @param integer The PID where editing will occur.
    (1-1/1)