Bug #20545 ยป 11242.diff
typo3/sysext/setup/mod/index.php (working copy) | ||
---|---|---|
if ($d['setValuesToDefault']) {
|
||
// If every value should be default
|
||
$BE_USER->resetUC();
|
||
} elseif ($d['clearSessionVars']) {
|
||
foreach ($BE_USER->uc as $key => $value) {
|
||
if (!isset($columns[$key])) {
|
||
unset ($BE_USER->uc[$key]);
|
||
}
|
||
}
|
||
} else {
|
||
// save all submitted values if they are no array (arrays are with table=be_users) and exists in $GLOBALS['TYPO3_USER_SETTINGS'][columns]
|
||
foreach($columns as $field => $config) {
|
||
... | ... | |
t3lib_BEfunc::cshItem('_MOD_user_setup', 'reset', $BACK_PATH) . '
|
||
<input type="hidden" name="simUser" value="'.$this->simUser.'" />
|
||
<input type="submit" name="submit" value="'.$LANG->getLL('save').'" />
|
||
<input type="submit" name="data[setValuesToDefault]" value="'.$LANG->getLL('setToStandard').'" onclick="return confirm(\''.$LANG->getLL('setToStandardQuestion').'\');" />'
|
||
<input type="submit" name="data[setValuesToDefault]" value="'.$LANG->getLL('setToStandard').'" onclick="return confirm(\''.$LANG->getLL('setToStandardQuestion').'\');" />
|
||
<input type="submit" name="data[clearSessionVars]" value="'.$LANG->getLL('clearSessionVars').'" />'
|
||
);
|
||
// Notice
|
typo3/sysext/setup/mod/locallang.xml (working copy) | ||
---|---|---|
<label index="disableCMlayers">Disable Popup Context Menus</label>
|
||
<label index="setToStandard">Reset all Values to default</label>
|
||
<label index="setToStandardQuestion">Are you sure you want to reset all values to default?</label>
|
||
<label index="clearSessionVars">Clear Session Data</label>
|
||
<label index="functions">Advanced functions</label>
|
||
<label index="copyLevels"><b>Recursive Copy:</b> Enter the number of page<br />sublevels to include, when a page is copied</label>
|
||
<label index="recursiveDelete"><b>Recursive Delete(!):</b> Allow ALL subpages<br />to be deleted when deleting a page</label>
|