Project

General

Profile

Bug #20545 ยป 11242.diff

Administrator Admin, 2009-06-02 18:07

View differences:

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">&lt;b&gt;Recursive Copy:&lt;/b&gt; Enter the number of page&lt;br /&gt;sublevels to include, when a page is copied</label>
<label index="recursiveDelete">&lt;b&gt;Recursive Delete(!):&lt;/b&gt; Allow ALL subpages&lt;br /&gt;to be deleted when deleting a page</label>
    (1-1/1)